Update dolresource.class.php

This commit is contained in:
Laurent Destailleur 2019-06-02 12:16:12 +02:00 committed by GitHub
parent 0372276a7b
commit cb927847ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -881,7 +881,7 @@ class Dolresource extends CommonObject
{
global $langs;
if (!empty($this->cache_code_type_resource) && count($this->cache_code_type_resource)) return 0; // Cache deja charge
if (is_array($this->cache_code_type_resource) && count($this->cache_code_type_resource)) return 0; // Cache deja charge
$sql = "SELECT rowid, code, label, active";
$sql.= " FROM ".MAIN_DB_PREFIX."c_type_resource";