diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-12-26 17:12:44 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-12-26 17:12:44 +0100 |
commit | 443d207b937495af46f088d883836ad9094bccdd (patch) | |
tree | 6bc3a0a0cb411fcc269337f05d6fdbcefbe90736 /inc/pageutils.php | |
parent | 6df2a685ec14723d4413b8df7a95de5f183a873f (diff) | |
download | rpg-443d207b937495af46f088d883836ad9094bccdd.tar.gz rpg-443d207b937495af46f088d883836ad9094bccdd.tar.bz2 |
fixed PHP4 incompatibility in sectionID() FS#1553
darcs-hash:20081226161244-7ad00-8c843ea6a06a0d36fc322d109497239ab6ea229c.gz
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r-- | inc/pageutils.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php index 7a140ef8c..ccf8d10b8 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -195,7 +195,7 @@ function noNSorNS($id) { * @param array $check List of existing IDs * @author Andreas Gohr <andi@splitbrain.org> */ -function sectionID($title,&$check=null) { +function sectionID($title,&$check) { $title = str_replace(':','',cleanID($title)); $new = ltrim($title,'0123456789._-'); if(empty($new)){ @@ -204,7 +204,7 @@ function sectionID($title,&$check=null) { $title = $new; } - if(!is_null($check) && is_array($check)){ + if(is_array($check)){ // make sure tiles are unique $num = ''; while(in_array($title.$num,$check)){ |