includes/pageprocess.php
changeset 878 ecc764c10138
parent 877 e9ee4e246f96
child 904 10076b28194b
--- a/includes/pageprocess.php	Sat Mar 21 14:33:22 2009 -0400
+++ b/includes/pageprocess.php	Sat Mar 21 14:55:34 2009 -0400
@@ -463,7 +463,8 @@
     
     // Set page_format
     $pathskey = $paths->nslist[ $this->namespace ] . $this->page_id;
-    if ( $paths->pages[ $pathskey ]['page_format'] != $page_format )
+    // Using @ due to warning thrown when saving new page
+    if ( @$paths->pages[ $pathskey ]['page_format'] !== $page_format )
     {
       // Note: no SQL injection to worry about here. Everything that goes into this is sanitized already, barring some rogue plugin.
       // (and if there's a rogue plugin running, we have bigger things to worry about anyway.)