Skip to content

Commit

Permalink
Checks for input data having a value
Browse files Browse the repository at this point in the history
  • Loading branch information
betweenbrain committed Aug 26, 2013
1 parent a0d0ff6 commit a7fad98
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions helper.php
Expand Up @@ -34,7 +34,7 @@ public static function getAjax() {

switch ($cmd) {
case "add" :
if (!isset($sessionData[$data])) {
if (!isset($sessionData[$data]) && $data != '') {
$sessionData[$data] = $data;
$session->set($node, $sessionData);
}
Expand All @@ -58,7 +58,6 @@ public static function getAjax() {
}

if ($sessionData) {

return $sessionData;
}

Expand Down

0 comments on commit a7fad98

Please sign in to comment.