Removed dead code
This commit is contained in:
parent
d12ec64190
commit
88862b25bc
@ -295,16 +295,6 @@ function default_loan_end() {
|
||||
return $end->getTimestamp();
|
||||
}
|
||||
|
||||
function str_ends_with($haystack, $needle) {
|
||||
if(strlen($needle) === 0) {
|
||||
return true;
|
||||
}
|
||||
if(strlen($haystack) === 0) {
|
||||
return false;
|
||||
}
|
||||
return substr($haystack, -strlen($needle)) === $needle;
|
||||
}
|
||||
|
||||
### Database interaction functions ###
|
||||
|
||||
$db = new mysqli($db_host, $db_user, $db_pass, $db_name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user