[Owncloud] Fix ampache
peter at chubb.wattle.id.au
peter at chubb.wattle.id.au
Tue May 15 06:47:03 UTC 2012
Bugs.owncloud.org appears to be down again.
iAmpache refuses to connect to owncloud.
The android client works with this patch:
diff --git a/apps/media/lib_collection.php b/apps/media/lib_collection.php
index 358b80d..11c9a0a 100644
--- a/apps/media/lib_collection.php
+++ b/apps/media/lib_collection.php
@@ -284,7 +284,7 @@ class OC_MEDIA_COLLECTION{
}
public static function getSongCount(){
- $query=OC\DB::prepare("SELECT DISTINCT COUNT(song_path) AS count FROM *PREFIX*media_songs");
+ $query=OCP\DB::prepare("SELECT DISTINCT COUNT(song_path) AS count FROM *PREFIX*media_songs");
$result=$query->execute()->fetchAll();
return $result[0]['count'];
}
More information about the Owncloud
mailing list