summaryrefslogtreecommitdiff
path: root/inc/pageutils.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r--inc/pageutils.php4
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)){