Fixed a problem where module loading was not reporting success.

master
penguinc 2005-01-23 20:04:33 +00:00
parent 279bac91f9
commit f3469516e7
1 changed files with 3 additions and 3 deletions

View File

@ -230,11 +230,11 @@ class NWNDriver
sleep(2); sleep(2);
$result = $this->getLogContent(); $result = $this->getLogContent();
$lines = explode("\n", $result); $lines = explode("\n", $result);
$found = false; $found = true;
foreach ($lines as $l) { foreach ($lines as $l) {
$l = trim($l); $l = trim($l);
if (!strpos($l, $moduleName) && strpos($l, 'Module loaded')) { if (!strpos($l, $moduleName) && strpos($l, 'Unable')) {
$found = true; $found = false;
} }
} }
if (!$found) { if (!$found) {