mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Fix E_STRICT warning in SSViewer
This commit is contained in:
parent
4be59a8d45
commit
142a073ce3
@ -719,7 +719,9 @@ class SSViewer {
|
|||||||
if(isset($this->chosenTemplates['main'])) {
|
if(isset($this->chosenTemplates['main'])) {
|
||||||
$template = $this->chosenTemplates['main'];
|
$template = $this->chosenTemplates['main'];
|
||||||
} else {
|
} 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");
|
if(isset($_GET['debug_profile'])) Profiler::mark("SSViewer::process", " for $template");
|
||||||
|
Loading…
Reference in New Issue
Block a user