MINOR: Fix E_STRICT warning in SSViewer

This commit is contained in:
Andrew O'Neil 2012-04-11 17:36:56 +12:00
parent 4be59a8d45
commit 142a073ce3

View File

@ -719,7 +719,9 @@ class SSViewer {
if(isset($this->chosenTemplates['main'])) {
$template = $this->chosenTemplates['main'];
} else {
$template = $this->chosenTemplates[ reset($dummy = array_keys($this->chosenTemplates)) ];
$keys = array_keys($this->chosenTemplates);
$key = reset($keys);
$template = $this->chosenTemplates[$key];
}
if(isset($_GET['debug_profile'])) Profiler::mark("SSViewer::process", " for $template");