Fix: Regression avec menu auguria
This commit is contained in:
parent
cffe74f4b8
commit
c0a5a7cbc0
@ -421,6 +421,7 @@ class Menubase
|
|||||||
{
|
{
|
||||||
global $user, $conf, $user;
|
global $user, $conf, $user;
|
||||||
|
|
||||||
|
include_once(DOL_DOCUMENT_ROOT.'/lib/admin.lib.php'); // Because later some eval try to run dynamic call to dolibarr_get_const
|
||||||
$constraint = true;
|
$constraint = true;
|
||||||
|
|
||||||
$sql = "SELECT c.rowid, c.action, mc.user";
|
$sql = "SELECT c.rowid, c.action, mc.user";
|
||||||
@ -431,7 +432,7 @@ class Menubase
|
|||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
//echo $sql;
|
//echo $sql;
|
||||||
$num = $this->db->num_rows();
|
$num = $this->db->num_rows($result);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
while (($i < $num) && $constraint == true)
|
while (($i < $num) && $constraint == true)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user