From a8e165eb321851fd68eb32c13ebba7c7bcbe0e6b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 22 Jul 2017 21:20:17 +0100 Subject: mythweb patch to work with php7.1 --- www-apps/mythweb/mythweb-0.28.1-php-7.1.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 www-apps/mythweb/mythweb-0.28.1-php-7.1.patch (limited to 'www-apps') 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; + } + -- cgit v1.2.3