summaryrefslogtreecommitdiff
path: root/www-apps/mythweb/mythweb-0.28.1-php-7.1.patch
blob: ce28b8a7c0702648e028c23d58668e65c0cf9b78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Index: includes/utils.php
===================================================================
--- a/includes/utils.php	(revision 7b273eca6a743bd712c15f1a57b4f2c82051fe4a)
+++ a/includes/utils.php	(revision 52ff70ecfdad06b0b66f8a5ec67cefc1b55a1861)
@@ -218,10 +218,10 @@
  * We require PHP 5.3 since fixes/0.24 which added a very similar ?: operator.
  **/
-    function _or($this, $or_this, $gt = false) {
+    function _or($a, $or_this, $gt = false) {
         if ($gt === true)
-            return $this > 0 ? $this : $or_this;
+            return $a > 0 ? $a : $or_this;
         if (!empty($gt))
-            return $this > $gt ? $this : $or_this;
-        return $this ? $this : $or_this;
+            return $a > $gt ? $a : $or_this;
+        return $a ? $a : $or_this;
     }