bugfixing get_action sql querry
This commit is contained in:
parent
c4dca07b82
commit
2927a970f8
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue