Removing correctely the debug file (only if it exists)

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1488 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-06-25 18:58:47 +00:00
parent 8834797041
commit 94b77ec490

View File

@@ -16,7 +16,8 @@ class markdown
@param string $mark Message in markdown syntax to display */
public function html ($mark)
{
if ($this->debug) unlink ("/tmp/debug");
if ($this->debug && file_exists ("/tmp/debugMD"))
unlink ("/tmp/debugMD");
$res = "";
$mark = htmlentities ($mark, ENT_QUOTES);