Ticket #3431: strpos.diff

File strpos.diff, 708 bytes (added by wilhelm.eger@…, 17 years ago)
  • mythplugins/mythweb/modules/video/handler.php

     
    119119        $file = dirname($file);
    120120    // Figure out the base...
    121121        foreach ($dirs as $dir) {
     122            if ($dir) {
    122123            if (strpos($file, $dir) !== false) {
    123124                if (!isset($PATH_TREE[$dir]))
    124125                    $PATH_TREE[$dir] = array('display' => $dir,
     
    128129                $file = str_replace($dir, '', $file);
    129130                break;
    130131            }
    131         }
     132        }}
    132133        $paths = explode('/', $file);
    133134        foreach ($paths AS $id => $path) {
    134135            if (empty($path))