Fix phpcs
This commit is contained in:
parent
9ce07b9582
commit
f1451904c0
@ -71,7 +71,7 @@ class mod_reception_beryl extends ModelNumRefReception
|
|||||||
$posindice=8;
|
$posindice=8;
|
||||||
$sql = "SELECT MAX(CAST(SUBSTRING(ref FROM ".$posindice.") AS SIGNED)) as max";
|
$sql = "SELECT MAX(CAST(SUBSTRING(ref FROM ".$posindice.") AS SIGNED)) as max";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."reception";
|
$sql.= " FROM ".MAIN_DB_PREFIX."reception";
|
||||||
$sql.= " WHERE ref LIKE '".$this->prefix."____-%'";
|
$sql.= " WHERE ref LIKE '".$db->escape($this->prefix)."____-%'";
|
||||||
$sql.= " AND entity = ".$conf->entity;
|
$sql.= " AND entity = ".$conf->entity;
|
||||||
|
|
||||||
$resql=$db->query($sql);
|
$resql=$db->query($sql);
|
||||||
@ -104,7 +104,7 @@ class mod_reception_beryl extends ModelNumRefReception
|
|||||||
$posindice=9;
|
$posindice=9;
|
||||||
$sql = "SELECT MAX(CAST(SUBSTRING(ref FROM ".$posindice.") AS SIGNED)) as max";
|
$sql = "SELECT MAX(CAST(SUBSTRING(ref FROM ".$posindice.") AS SIGNED)) as max";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."reception";
|
$sql.= " FROM ".MAIN_DB_PREFIX."reception";
|
||||||
$sql.= " WHERE ref like '".$this->prefix."____-%'";
|
$sql.= " WHERE ref like '".$db->escape($this->prefix)."____-%'";
|
||||||
$sql.= " AND entity = ".$conf->entity;
|
$sql.= " AND entity = ".$conf->entity;
|
||||||
|
|
||||||
$resql=$db->query($sql);
|
$resql=$db->query($sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user