Browse Source

bugfix

undefined var when no categories were found in DB
master
n0m1s 10 years ago
parent
commit
d4449d6195
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      databaseOperations.php

+ 1
- 0
databaseOperations.php View File

@ -191,6 +191,7 @@ function getCategoriesForOneEvent($db, $eventId)
$request->execute(array($eventId));
$result = $request->fetchAll();
$request->closeCursor();
$categories = array();
foreach($result as $oneResult)
$categories[] = $oneResult["cat_id"];
return $categories;


Loading…
Cancel
Save