Fix scrutinizer bug
This commit is contained in:
parent
7da9911db1
commit
64ae70d106
@ -88,7 +88,7 @@ class Subscription extends CommonObject
|
||||
$sql.= " '".$this->db->escape($this->note)."')";
|
||||
|
||||
$resql = $this->db->query($sql);
|
||||
if ($res===false) {
|
||||
if (! $resql) {
|
||||
$error++;
|
||||
$this->errors[] = $this->db->lasterror();
|
||||
}
|
||||
|
||||
@ -663,7 +663,7 @@ if ($resql)
|
||||
print '<tr>';
|
||||
print '<td>';
|
||||
print '<input name="label" class="flat minwidth200" type="text" value="'.GETPOST("label","alpha").'">';
|
||||
if ($options) {
|
||||
if (is_array($options) && count($options)) {
|
||||
print '<br>'.$langs->trans("Rubrique").': ';
|
||||
print Form::selectarray('cat1', $options, GETPOST('cat1'), 1);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user