]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix error when uploading music
authorFlorian Pritz <bluewind@xinu.at>
Thu, 22 Sep 2011 16:30:22 +0000 (18:30 +0200)
committerFlorian Pritz <bluewind@xinu.at>
Sat, 24 Sep 2011 16:41:44 +0000 (18:41 +0200)
These methods are called statically so make them static.

Signed-off-by: Florian Pritz <bluewind@xinu.at>
apps/media/getID3/getid3/getid3.lib.php

index 4ed5e361f50339fdf913df89ba4af472e4c835b0..9322cae4dd813deac1a0ba70c4c83ea84137e462 100644 (file)
@@ -1006,7 +1006,7 @@ class getid3_lib
        }
 
 
-       function MultiByteCharString2HTML($string, $charset='ISO-8859-1') {
+       static function MultiByteCharString2HTML($string, $charset='ISO-8859-1') {
                $HTMLstring = '';
 
                switch ($charset) {
@@ -1187,7 +1187,7 @@ class getid3_lib
                return (isset($ImageTypesLookup[$imagetypeid]) ? $ImageTypesLookup[$imagetypeid] : '');
        }
 
-       function CopyTagsToComments(&$ThisFileInfo) {
+       static function CopyTagsToComments(&$ThisFileInfo) {
 
                // Copy all entries from ['tags'] into common ['comments']
                if (!empty($ThisFileInfo['tags'])) {