Ticket #123: alex2008_catalog_update.patch

File alex2008_catalog_update.patch, 1.4 kB (added by alex@…, 12 months ago)

fix for bin/catalog_update.inc

  • bin/catalog_update.inc

    Only in /home/alex/dev/svn.ampache.org/trunk/: .svn
    Only in .: ChangeLog.txt
    diff -urp /home/alex/dev/svn.ampache.org/trunk/bin/catalog_update.inc ./bin/catalog_update.inc
    old new  
    2525require_once $prefix . '/lib/init.php'; 
    2626 
    2727 
     28$GLOBALS['user']->access = 100; // to make sure we pass Access::check for interface 
    2829echo "[catalog_update.php.inc]\nStarting Catalog Clean/Update And Add\n\n"; 
    2930 
    3031if (count($_SERVER['argv']) > 1) { 
  • lib/class/catalog.class.php

    Only in ./bin: moo.php
    Only in ./config: ampache.cfg.php
    diff -urp /home/alex/dev/svn.ampache.org/trunk/lib/class/catalog.class.php ./lib/class/catalog.class.php
    old new  
    11031103                               $songs = $artist->get_songs(); 
    11041104                               break; 
    11051105                       case 'song': 
    1106                                $songs[0] = new Song($id); 
     1106                               $songs[0] = $id; // new Song($id); 
    11071107                               break; 
    11081108               } // end switch type 
    11091109