Typo in function name fixed, double->single quotes, some HTML fixes
[mailer.git] / inc / modules / admin / what-usage.php
index c776c2c24874fe49420e02f18176d65213900b06..70d433eb40e1c04d0102118d95fcd1c9c458cb52 100644 (file)
@@ -66,7 +66,7 @@ if (REQUEST_ISSET_GET(('image'))) {
 
        if (isFileReadable($FQFN)) {
                $image = imagecreatefrompng($FQFN);
-               sendHeader("Content-type: image/png");
+               sendHeader('Content-type: image/png');
                imagepng($image);
                imagedestroy($image);
        }
@@ -104,10 +104,10 @@ if ((!empty($FQFN)) && (isFileReadable($FQFN))) {
        $test = strtolower($content);
 
        // Do we need to strip out above and including <body> plus trailing </html> tag?
-       if ((strpos($test, "<body") > 0) && (strpos($test, "</body>") > 0)) {
+       if ((strpos($test, '<body') > 0) && (strpos($test, '</body>') > 0)) {
                // Okay, then do so.
                $content = substr(substr($content, 0, $body_end), $body_start);
-               $content = substr($content, strpos($content, ">") + 1);
+               $content = substr($content, strpos($content, '>') + 1);
        } // END - if
 
        // Output code