Changeset 1681

Show
Ignore:
Timestamp:
01/28/07 15:33:16 (21 months ago)
Author:
mbonetti
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/admin/channels.php

    r1680 r1681  
    788788        // set categories 
    789789        elseif (array_key_exists('me_set_categories',$_POST)) { 
    790             $tags = utf8_decode(rss_real_escape_string($_POST['me_categories'])); 
    791             foreach($ids as $id) { 
    792                 __exp__submitTag($id, $tags, '"channel"'); 
     790            $tags = utf8_decode(trim(rss_real_escape_string($_POST['me_categories']))); 
     791            if ($tags){ 
     792                foreach($ids as $id) { 
     793                    __exp__submitTag($id, $tags, '"channel"'); 
     794                } 
    793795            } 
    794796        }