This repository has been archived by the owner. It is now read-only.

Fix php warning #10

Merged
merged 2 commits into from Jun 14, 2011
Jump to file or symbol
Failed to load files and symbols.
+4 −4
Diff settings

Always

Just for now

@@ -64,7 +64,7 @@ protected function write($path, $data, $timeout)
if (!is_dir(dirname($path)))
{
// create directory structure if needed
- mkdir(dirname($path) , 0777, true);
+ mkdir(dirname($path), 0777, true);
}
$tmpFile = tempnam(dirname($path) , basename($path));
@@ -144,7 +144,7 @@ protected function getGlobPatterns(sfRoute $route)
$paths = array();
for($i=$depth; $i<=$routeOptions['max_folder_depth']; $i++)
{
- $paths[] = $pathBase.$pathStart.str_repeat('*/', $i - $depth).'*'.$pathEnd;;
+ $paths[] = $pathBase.$pathStart.str_repeat('*/', $i - $depth).'*'.$pathEnd;
}
return $paths;
}
@@ -171,12 +171,12 @@ public function preassemblePattern($params = array())
{
$params = $this->convertObjectToArray($params);
- if(!$params['sf_format'])
+ if(!isset($params['sf_format']))
{
$params['sf_format'] = '{jpg,gif,png}';
}
- if(!$params['format'])
+ if(!isset($params['format']))
{
$params['format'] = '{'.implode(',', array_keys(sfConfig::get('thumbnailing_formats'))).'}';
}