diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-07-22 21:20:17 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-07-22 21:20:17 +0100 |
commit | a8e165eb321851fd68eb32c13ebba7c7bcbe0e6b (patch) | |
tree | 58c85a72d2c7173b8597e52b7cd4ac16a11da962 | |
parent | Patch the configuration until I can figure out webapp-config config protection (diff) | |
download | patches-a8e165eb321851fd68eb32c13ebba7c7bcbe0e6b.tar.bz2 patches-a8e165eb321851fd68eb32c13ebba7c7bcbe0e6b.tar.xz patches-a8e165eb321851fd68eb32c13ebba7c7bcbe0e6b.zip |
mythweb patch to work with php7.1
-rw-r--r-- | www-apps/mythweb/mythweb-0.28.1-php-7.1.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/www-apps/mythweb/mythweb-0.28.1-php-7.1.patch b/www-apps/mythweb/mythweb-0.28.1-php-7.1.patch new file mode 100644 index 0000000..ce28b8a --- /dev/null +++ b/www-apps/mythweb/mythweb-0.28.1-php-7.1.patch @@ -0,0 +1,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;
+ }
+
|