Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_modules / articles [ view in CVS ]
Date | Directory [filter] | File(s) [view] | Author [filter] |
29 Jul 2002 14:10:33 | postnuke_modules/articles | pnadmin.php,1.21,1.22 | Mike |
fix some issues with categories |
Update of /home/cvsroot/postnuke_modules/articles In directory ns7.hostnuke.net:/tmp/cvs-serv9193 Modified Files: pnadmin.php Log Message: fix some issues with categories Index: pnadmin.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/articles/pnadmin.php,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** pnadmin.php 28 Jul 2002 23:20:33 -0000 1.21 --- pnadmin.php 29 Jul 2002 14:10:30 -0000 1.22 *************** *** 67,73 **** $string = pnModGetVar('articles', 'cids.'.$ptid); } ! if (empty($string)) { $string = pnModGetVar('articles', 'cids'); } if (!isset($string) || !($string)) --- 67,74 ---- $string = pnModGetVar('articles', 'cids.'.$ptid); } ! if (!isset($string)) { $string = pnModGetVar('articles', 'cids'); } + /* allow articles without category too ? if (!isset($string) || !($string)) *************** *** 78,81 **** --- 79,83 ---- return; } + */ // Turn it into an array *************** *** 95,98 **** --- 97,103 ---- for ($n=0;$n<$nc;$n++) { + if (empty($cids[$n])) { + continue; + } $catsel .= pnModAPIFunc('categories', 'visual', *************** *** 484,488 **** $string = pnModGetVar('articles', 'cids.'.$ptid); } ! if (empty($string)) { $string = pnModGetVar('articles', 'cids'); } --- 489,493 ---- $string = pnModGetVar('articles', 'cids.'.$ptid); } ! if (!isset($string)) { $string = pnModGetVar('articles', 'cids'); } *************** *** 510,513 **** --- 515,521 ---- for ($n=0;$n<$nc;$n++) { + if (empty($main_cids[$n])) { + continue; + } $catsel .= pnModAPIFunc('categories', 'visual', *************** *** 684,688 **** $old_ncats = (int) pnModGetVar('articles', 'number_of_categories.' . $ptid); } ! if (empty($old_ncats)) { $old_ncats = (int) pnModGetVar('articles', 'number_of_categories'); } --- 692,696 ---- $old_ncats = (int) pnModGetVar('articles', 'number_of_categories.' . $ptid); } ! if (!isset($old_ncats)) { $old_ncats = (int) pnModGetVar('articles', 'number_of_categories'); } *************** *** 771,775 **** $numcats = pnModGetVar('articles','number_of_categories.'.$ptid); } ! if (empty($numcats)) { $numcats = pnModGetVar('articles','number_of_categories'); } --- 779,783 ---- $numcats = pnModGetVar('articles','number_of_categories.'.$ptid); } ! if (!isset($numcats)) { $numcats = pnModGetVar('articles','number_of_categories'); } *************** *** 832,835 **** --- 840,846 ---- if (isset($cids)) { + if (count($cids) > $number_of_categories) { + $cids = array_slice($cids,0,$number_of_categories); + } $string = join (';', $cids); if (!empty($ptid)) {
View Statistics - Next Notice - Previous Notice
Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |