# HG changeset patch # User Dan # Date 1237661693 14400 # Node ID e9ee4e246f966d06fc0326284014c0c9fbed13b7 # Parent aed15c337b727aa44b06cbe66a6f5b5eac40919e Silenced check for page_format due to warning thrown when saving new page diff -r aed15c337b72 -r e9ee4e246f96 includes/pageprocess.php --- a/includes/pageprocess.php Sat Mar 21 14:54:16 2009 -0400 +++ b/includes/pageprocess.php Sat Mar 21 14:54:53 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.)