From 2927a970f85b56fdc000d23c3ec2db2799386b2a Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider Date: Mon, 22 Apr 2013 09:51:38 +0000 Subject: [PATCH] bugfixing get_action sql querry --- bureau/class/m_action.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/m_action.php b/bureau/class/m_action.php index 90a7c44c..82f54442 100644 --- a/bureau/class/m_action.php +++ b/bureau/class/m_action.php @@ -111,7 +111,7 @@ class m_action { global $db; $tab=array(); - $db->query('select * from (select * form actions where end="" and begin="" order by id) x group by id'); + $db->query('select * from actions where end="0000-00-00 00:00:00" and begin="0000-00-00 00:00:00" order by id limit 1;'); if ($db->next_record()){ $tab[]=$db->Record; return $tab;