if (!self::$_cache[$argString]) {
$table = self::getTableName();
$where = self::whereCache($group, $path, $componentID);
- $dao = CRM_Core_DAO::executeQuery("SELECT data FROM $table WHERE $where");
- $data = isset($dao->data) ? unserialize($dao->data) : NULL;
- $dao->free();
+ $rawData = CRM_Core_DAO::singleValueQuery("SELECT data FROM $table WHERE $where");
+ $data = $rawData ? unserialize($rawData) : NULL;
self::$_cache[$argString] = $data;
$cache->set($argString, self::$_cache[$argString]);