From f3469516e7897103c248c92566895d6e9cae944e Mon Sep 17 00:00:00 2001 From: penguinc Date: Sun, 23 Jan 2005 20:04:33 +0000 Subject: [PATCH] Fixed a problem where module loading was not reporting success. --- lib/NWNDriver.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/NWNDriver.php b/lib/NWNDriver.php index 0831f92..632f1a6 100644 --- a/lib/NWNDriver.php +++ b/lib/NWNDriver.php @@ -230,11 +230,11 @@ class NWNDriver sleep(2); $result = $this->getLogContent(); $lines = explode("\n", $result); - $found = false; + $found = true; foreach ($lines as $l) { $l = trim($l); - if (!strpos($l, $moduleName) && strpos($l, 'Module loaded')) { - $found = true; + if (!strpos($l, $moduleName) && strpos($l, 'Unable')) { + $found = false; } } if (!$found) {