From 03d97f003ae9f74848788a12f11c91048662039c Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Fri, 12 Jan 2007 00:34:42 +0000 Subject: [PATCH] PHP and types ;-) mcaccess--, dbaccess-- --- includes/WatchedItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1