Fix the reference to the prepared statement.

This commit is contained in:
markjcrane
2016-03-26 14:03:44 -06:00
parent c6f0759a5c
commit e3175814bd

View File

@@ -499,7 +499,7 @@
$sql .= "order by l.menu_item_title, i.menu_item_order asc ";
$sub_prep_statement = $db->prepare($sql);
$sub_prep_statement->execute();
$sub_result = $prep_statement_2->fetchAll(PDO::FETCH_NAMED);
$sub_result = $sub_prep_statement->fetchAll(PDO::FETCH_NAMED);
//save the child menu into an array
if (count($sub_result) > 0) {