Skip to content

Commit

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

0 comments on commit 0c4b59d

Please sign in to comment.