Corrected function name.

This commit is contained in:
Andrew McMillan 2007-05-31 18:27:54 +12:00
parent ecf87b2552
commit bc8268868c

View File

@ -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];
}