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:
parent
c27481203c
commit
eda8070b7f
4 changed files with 6 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue