aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2015-02-10 09:49:26 +0100
committerzottel <github@zottel.net>2015-02-10 09:49:26 +0100
commit9dda248b94fdedd238d19241007eea3c47d8bd75 (patch)
tree5716543a5683c098ae9817e4030d82cb1056c7c9 /install
parent55c3c54ef6fe3f3d80df01c94d334bdfbf395683 (diff)
downloadvolse-hubzilla-9dda248b94fdedd238d19241007eea3c47d8bd75.tar.gz
volse-hubzilla-9dda248b94fdedd238d19241007eea3c47d8bd75.tar.bz2
volse-hubzilla-9dda248b94fdedd238d19241007eea3c47d8bd75.zip
make update 1133 work in PHP < 5.5
Diffstat (limited to 'install')
-rw-r--r--install/update.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index 8ce50926a..2c9e54ff9 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1518,7 +1518,7 @@ function update_r1133() {
PRIMARY KEY (xp_id) )");
$r2 = 0;
foreach(array('xp_client', 'xp_channel', 'xp_perm') as $fld)
- $r2 += (empty(q("create index $fld on xperm ($fld)")) ? 0 : 1);
+ $r2 += ((q("create index $fld on xperm ($fld)") == false) ? 0 : 1);
$r = (($r1 && $r2) ? true : false);
}