Fix another instance of site.

This commit is contained in:
DariusIII
2015-06-09 02:38:07 +02:00
parent 6cd424d21e
commit 79b60c7347
+1 -1
View File
@@ -152,7 +152,7 @@ $page->smarty->assign('book_reqids_ids', $book_reqids_ids);
$page->smarty->assign('book_reqids_names', $book_reqids_names);
// convert from a list to an array as we need to use an array, but teh Settings table only saves strings
$books_selected = explode(",", $page->site->book_reqids);
$books_selected = explode(",", $page->settings->getSetting('book_reqids'));
// convert from a string array to an int array
$books_selected = array_map(create_function('$value', 'return (int)$value;'), $books_selected);