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:
9984a60
)
Fix notices on undefined $fileHandle and $res
author
Chad Horohoe
<chadh@wikimedia.org>
Wed, 27 Nov 2013 18:02:34 +0000
(10:02 -0800)
committer
Chad Horohoe
<chadh@wikimedia.org>
Wed, 27 Nov 2013 18:02:34 +0000
(10:02 -0800)
Change-Id: If9f37549af85df0a418dbd12a7793e5a45868f61
maintenance/cdb.php
patch
|
blob
|
history
diff --git
a/maintenance/cdb.php
b/maintenance/cdb.php
index
bda64f3
..
1772b5f
100644
(file)
--- a/
maintenance/cdb.php
+++ b/
maintenance/cdb.php
@@
-52,7
+52,7
@@
do {
$bad = false;
$showhelp = false;
$quit = false;
- static $fileHandle;
+ static $fileHandle
= false
;
$line = Maintenance::readconsole();
if ( $line === false ) {
@@
-98,6
+98,7
@@
do {
$res = $fileHandle->get( $args[0] );
} catch ( CdbException $e ) {
print "Unable to read key from file\n";
+ break;
}
if ( $res === false ) {
print "No such key/value pair\n";