dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
061ca31
)
PHP and types ;-) mcaccess--, dbaccess--
author
Domas Mituzas
<midom@users.mediawiki.org>
Fri, 12 Jan 2007 00:34:42 +0000
(
00:34
+0000)
committer
Domas Mituzas
<midom@users.mediawiki.org>
Fri, 12 Jan 2007 00:34:42 +0000
(
00:34
+0000)
includes/WatchedItem.php
patch
|
blob
|
history
diff --git
a/includes/WatchedItem.php
b/includes/WatchedItem.php
index
788774f
..
dac6e17
100644
(file)
--- 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,