Browse Source

E_STRICT fix

euromark 12 years ago
parent
commit
335a262a1a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Lib/MimeLib.php

+ 2 - 1
Lib/MimeLib.php

@@ -824,7 +824,8 @@ class MimeLib extends CakeResponse {
 	*/
 	protected function _getExtension($file = NULL) {
 		if (!is_null($file)) {
-			$ext = strtolower(array_pop(explode('.', $file)));
+			$pieces = explode('.', $file);
+			$ext = strtolower(array_pop($pieces));
 			return $ext;
 		}
 		return false;