Permalink
Browse files

minor js include bug fix

  • Loading branch information...
1 parent 9eea50d commit a212ca750a70e77336450237229dbd192cdc08a5 @viveleroi committed Mar 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 system/template/Template.php
View
2 system/template/Template.php
@@ -372,7 +372,7 @@ private function staticUrl($args){
public function parseMediaFilePath($path){
$base = array();
$path_arr = explode('/', $path);
- if(is_array($path_arr)){
+ if(is_array($path_arr) && count($path_arr) > 1){
$i = count($path_arr) - 1;
$path_arr = array_reverse($path_arr);
$base['from'] = (isset($path_arr[$i]) ? 'i' : 'm');

0 comments on commit a212ca7

Please sign in to comment.