From: Michael Wallner Date: Fri, 6 Mar 2015 17:52:27 +0000 (+0100) Subject: fix exception when there's no pharext_install.php X-Git-Tag: v1.1.0~3^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=aca5c81d18cbc301bbffba4313c674da1dbc9a55;p=pharext%2Fpharext fix exception when there's no pharext_install.php --- diff --git a/bin/pharext b/bin/pharext index 8de8858..92f999c 100755 Binary files a/bin/pharext and b/bin/pharext differ diff --git a/src/pharext/Installer.php b/src/pharext/Installer.php index 19aad72..6aae795 100644 --- a/src/pharext/Installer.php +++ b/src/pharext/Installer.php @@ -73,7 +73,7 @@ class Installer implements Command $phars[$this->tmp] = $phar; foreach ($phars as $phar) { - if (($hook = $phar["pharext_install.php"])) { + if (isset($phar["pharext_install.php"])) { $callable = include $phar["pharext_install.php"]; if (is_callable($callable)) { $recv[] = $callable($this);