mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-27 02:54:27 +00:00
Corrected function name.
This commit is contained in:
parent
ecf87b2552
commit
bc8268868c
@ -106,7 +106,7 @@ if ( $qry->Exec("always") && $row = $qry->Fetch() ) {
|
||||
$_known_users = array();
|
||||
function getUserByName( $username ) {
|
||||
// Provide some basic caching in case this ends up being overused.
|
||||
if ( isset( $_known_users[$username] ) ) return $_known_users[$username] );
|
||||
if ( isset( $_known_users[$username] ) ) return $_known_users[$username] ;
|
||||
|
||||
$qry = new PgQuery( "SELECT * FROM usr WHERE lower(username) = lower(?) ", $username );
|
||||
if ( $qry->Exec('always',__LINE__,__FILE__) && $qry->rows == 1 ) {
|
||||
@ -164,7 +164,7 @@ $http_status_codes = array(
|
||||
'504' => "Gateway Timeout",
|
||||
'505' => "HTTP Version Not Supported");
|
||||
|
||||
function getMessageStatus($status) {
|
||||
function getStatusMessage($status) {
|
||||
return $http_status_codes[$status];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user