initialize , Fixes #56

This commit is contained in:
Benjamin Sonntag 2016-03-13 13:23:11 +01:00
parent 0509d2915d
commit c8353f3f21
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@
function variable_init($conf = array()) {
global $db;
$result = $db->query('SELECT * FROM `variable`');
$variables=array();
while ($db->next_record($result)) {
/* maybe the data is *not* serialized, in that case, take it verbatim */
$variable = $db->Record;