1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 03:49:56 +02:00

fix tags in the api

This commit is contained in:
Karl 'vollmerk' Vollmer 2009-03-10 21:45:15 +00:00
parent c27481203c
commit eda8070b7f
4 changed files with 6 additions and 5 deletions

View file

@ -39,6 +39,9 @@ abstract class database_object {
$table_name = $table_name ? Dba::escape($table_name) : Dba::escape(strtolower(get_class($this)));
// Make sure we've got a real id
if (!is_numeric($id)) { return array(); }
if (self::is_cached($table_name,$id)) {
return self::get_from_cache($table_name,$id);
}