From: Domas Mituzas Date: Fri, 12 Jan 2007 00:10:49 +0000 (+0000) Subject: someone was lost in type conversion too ;-) X-Git-Tag: 1.31.0-rc.0~54491 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=061ca31a36e8366d1345ae8d47a9f1eb98acb682;p=lhc%2Fweb%2Fwiklou.git someone was lost in type conversion too ;-) --- diff --git a/includes/User.php b/includes/User.php index 02c98912a9..b0fd9a2a00 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1121,11 +1121,11 @@ class User { global $wgMemc; $key = wfMemcKey( 'newtalk', 'ip', $this->getName() ); $newtalk = $wgMemc->get( $key ); - if( is_integer( $newtalk ) ) { + if( $newtalk != "" ) { $this->mNewtalk = (bool)$newtalk; } else { $this->mNewtalk = $this->checkNewtalk( 'user_ip', $this->getName() ); - $wgMemc->set( $key, $this->mNewtalk, time() + 1800 ); + $wgMemc->set( $key, (int)$this->mNewtalk, time() + 1800 ); } } else { $this->mNewtalk = $this->checkNewtalk( 'user_id', $this->mId );