summaryrefslogtreecommitdiff
path: root/inc/pageutils.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-10-20 11:30:51 -0700
committerAndreas Gohr <andi@splitbrain.org>2013-10-20 11:30:51 -0700
commitd9529222b05d3366179c8a5bbd6d717664b98de0 (patch)
tree7789b8bc9ee9405f0ce33ff19dad5d15fb9b6207 /inc/pageutils.php
parent9f5b9cf15569babaa90f0d6f3dd58cefd5439bc5 (diff)
parente07886c01389351f28a254ef6f7c9611453508fb (diff)
downloadrpg-d9529222b05d3366179c8a5bbd6d717664b98de0.tar.gz
rpg-d9529222b05d3366179c8a5bbd6d717664b98de0.tar.bz2
Merge pull request #380 from splitbrain/phpstrict
Php strict
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r--inc/pageutils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php
index bf79daa7d..60f326e04 100644
--- a/inc/pageutils.php
+++ b/inc/pageutils.php
@@ -396,7 +396,7 @@ function resolve_id($ns,$id,$clean=true){
// if the id starts with a dot we need to handle the
// relative stuff
- if($id{0} == '.'){
+ if($id && $id{0} == '.'){
// normalize initial dots without a colon
$id = preg_replace('/^(\.+)(?=[^:\.])/','\1:',$id);
// prepend the current namespace