remove warning

This commit is contained in:
Frédéric FRANCE 2020-10-21 21:21:30 +02:00
parent 4873794dc0
commit f500076247
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1

View File

@ -304,7 +304,7 @@ class printing_printgcp extends PrintingDriver
$responsedata = json_decode($response, true);
$printers = $responsedata['printers'];
// Check if we have printers?
if (count($printers) == 0) {
if (is_array($printers) && count($printers) == 0) {
// We dont have printers so return blank array
$ret['available'] = array();
} else {