diff --git a/inc/common.php b/inc/common.php index ec7f9becefada0ae3867cbdd2ba811b00c395548..8b92ebcbc8f7a5fa978734f6c657c862802bb09f 100644 --- a/inc/common.php +++ b/inc/common.php @@ -980,7 +980,7 @@ function saveWikiText($id,$text,$summary,$minor=false){ $file = wikiFN($id); $old = @filemtime($file); // from page - $wasRemoved = empty($text); + $wasRemoved = (trim($text) == ''); // check for empty or whitespace only $wasCreated = !@file_exists($file); $wasReverted = ($REV==true); $newRev = false;