global $wgDBname, $wgMemc;
$key = "$wgDBname:newtalk:ip:{$this->mName}";
$newtalk = $wgMemc->get( $key );
- if( ! is_scalar( $newtalk ) ){
+ if( ! is_integer( $newtalk ) ){
$sql = "SELECT 1 FROM user_newtalk WHERE user_ip='{$this->mName}'";
$res = wfQuery ($sql, DB_READ, "User::loadFromDatabase" );
global $wgMemc;
$key = $this->watchKey();
$iswatched = $wgMemc->get( $key );
- if( is_scalar( $iswatched ) ) return $iswatched;
+ if( is_integer( $iswatched ) ) return $iswatched;
$sql = "SELECT 1 FROM watchlist WHERE wl_user=$this->id AND wl_namespace=$this->ns AND wl_title='$this->eti'";
$res = wfQuery( $sql, DB_READ );