PHP and types ;-) mcaccess--, dbaccess--
authorDomas Mituzas <midom@users.mediawiki.org>
Fri, 12 Jan 2007 00:34:42 +0000 (00:34 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Fri, 12 Jan 2007 00:34:42 +0000 (00:34 +0000)
includes/WatchedItem.php

index 788774f..dac6e17 100644 (file)
@@ -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,