forked from Wavyzz/dolibarr
fix phpstan pgsql.class.php (#29511)
* fix phpstan pgsql.class.php * Update Database.interface.php * fix phan fix phan fix phan * fix phan * fix phan * fix phan * fix phan fix phan fix phan fix phan fix phan * fix phan * fix phan * fix phan * fix phan
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
/* Copyright (C) 2018 Quentin Vial-Gouteyron <quentin.vial-gouteyron@atm-consulting.fr>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -303,7 +304,9 @@ if ($resql) {
|
||||
$num_rows = $db->num_rows($resql);
|
||||
while ($i < $num_rows) {
|
||||
$array = $db->fetch_array($resql);
|
||||
array_push($def, $array[0]);
|
||||
if (is_array($array)) {
|
||||
array_push($def, $array[0]);
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user