Skip to content

Commit

Permalink
simplified and improved check of null string in validate()
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Salzano committed Jul 12, 2013
1 parent 0c4b59d commit 1c68c8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mg/PAGI/Node/Node.php
Expand Up @@ -503,12 +503,12 @@ public function validate()
$onError = $data['soundOnError'];
if (is_array($onError)) {
foreach ($onError as $msg) {
if ($msg!=null)
$this->addPrePromptMessage($msg);
$this->addPrePromptMessage($msg);
}
} else {
if ($onError!=null)
if (is_string($onError)) {
$this->addPrePromptMessage($onError);
}
}
return false;
}
Expand Down

0 comments on commit 1c68c8c

Please sign in to comment.