From 9dda248b94fdedd238d19241007eea3c47d8bd75 Mon Sep 17 00:00:00 2001 From: zottel Date: Tue, 10 Feb 2015 09:49:26 +0100 Subject: make update 1133 work in PHP < 5.5 --- install/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install') 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); } -- cgit v1.2.3