From 3b656f15dc5d3fe4d4fdbbf714cea144cef92bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=EF=BF=BD=EF=BF=BDois=20Serman?= Date: Thu, 26 Jun 2014 09:43:11 +0000 Subject: [PATCH] next_record takes no parameters --- bureau/class/m_variables.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bureau/class/m_variables.php b/bureau/class/m_variables.php index 06c3dcaf..48fcb161 100644 --- a/bureau/class/m_variables.php +++ b/bureau/class/m_variables.php @@ -410,7 +410,7 @@ class m_variables { $result = $db->query('SELECT name, comment FROM `variable` order by name'); $t=array(); - while ($db->next_record($result)) { + while ($db->next_record()) { $tname = $db->f('name'); // If not listed of if listed comment is shorter if ( ! isset( $t[$tname] ) || strlen($t[$tname]) < $db->f('comment') ) { @@ -432,7 +432,7 @@ class m_variables { $result = $db->query('SELECT * FROM `variable`'); $arr_var=array(); - while ($db->next_record($result)) { + while ($db->next_record()) { // Unserialize value if needed if ( ($value = @unserialize($db->f('value'))) === FALSE) { $value=$db->f('value');