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

Tags requests improved. Ability to edit/delete tags depending on user rights. (Fix #135) (Fix #127)

This commit is contained in:
SUTJael 2014-02-18 19:32:16 +01:00
parent e2b3b1ed51
commit 5f5460708a
31 changed files with 226 additions and 238 deletions

View file

@ -92,10 +92,7 @@ abstract class database_object
public static function get_from_cache($index,$id)
{
// Check if the object is set
if (isset(self::$object_cache[$index])
&& isset(self::$object_cache[$index][$id])
) {
if (isset(self::$object_cache[$index]) && isset(self::$object_cache[$index][$id])) {
self::$cache_hit++;
return self::$object_cache[$index][$id];
}
@ -108,7 +105,7 @@ abstract class database_object
* add_to_cache
* This adds the specified object to the specified index in the cache
*/
public static function add_to_cache($index,$id,$data)
public static function add_to_cache($index, $id, $data)
{
if (!self::$_enabled) { return false; }