From efda17ecfa005d45a014d1054ee026cc0122670e Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Fri, 1 Mar 2013 17:22:27 +0000 Subject: [PATCH] No need to trim $icv, & format indent code --- index.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 5fd8b2b..1a637c7 100644 --- a/index.php +++ b/index.php @@ -10,7 +10,6 @@ $updateMsg = ''; if ($ICEcoder["checkUpdates"]) { $icv = explode("\n",file_get_contents("http://icecoder.net/latest-version?thisVersion=".$ICEcoder["versionNo"])); $icv = $icv[0]; - $icv = rtrim(ltrim($icv,'"'),'"\\n'); if ($ICEcoder["versionNo"]<$icv) { $updateMsg = ";top.ICEcoder.dataMessage('UPDATE INFO: ICEcoder v ".$icv." now available. (Your version is v ".$ICEcoder["versionNo"]."). Get it free from icecoder.net');"; } @@ -32,7 +31,6 @@ window.onbeforeunload = function() { return "You have some unsaved changes."; } } -
-
Code Assist
-
Go to Line +
Code Assist
+
Go to Line