bugfixing get_action sql querry

This commit is contained in:
Steven Mondji-Lerider 2013-04-22 09:51:38 +00:00
parent c4dca07b82
commit 2927a970f8
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class m_action {
global $db; global $db;
$tab=array(); $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()){ if ($db->next_record()){
$tab[]=$db->Record; $tab[]=$db->Record;
return $tab; return $tab;