From: Domas Mituzas Date: Fri, 12 Jan 2007 00:34:42 +0000 (+0000) Subject: PHP and types ;-) mcaccess--, dbaccess-- X-Git-Tag: 1.31.0-rc.0~54490 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=03d97f003ae9f74848788a12f11c91048662039c;p=lhc%2Fweb%2Fwiklou.git PHP and types ;-) mcaccess--, dbaccess-- --- diff --git a/includes/WatchedItem.php b/includes/WatchedItem.php index 788774fb20..dac6e17439 100644 --- a/includes/WatchedItem.php +++ b/includes/WatchedItem.php @@ -49,7 +49,7 @@ class WatchedItem { $key = $this->watchKey(); $iswatched = $wgMemc->get( $key ); - if( is_integer( $iswatched ) ) return $iswatched; + if( $iswatched != '' ) return (int)$iswatched; $dbr =& wfGetDB( DB_SLAVE ); $res = $dbr->select( 'watchlist', 1, array( 'wl_user' => $this->id, 'wl_namespace' => $this->ns,