Fix PHP warning

PHP Warning:  Use of undefined constant linkcount - assumed 'linkcount' (this will throw an Error in a future version of PHP) in .../plugins/serendipity_plugin_linklist.php on line 457
This commit is contained in:
Matthias Gutjahr 2018-09-04 10:35:34 +02:00
parent ef142e727e
commit 98b6926485
No known key found for this signature in database
GPG key ID: E772FA2F656BFC41

View file

@ -454,7 +454,7 @@ class serendipity_plugin_linklist extends serendipity_plugin
$link_array = array();
$dirname = array();
$level = array();
$dir_array[''] = array('dirname' => '','level' => 1,linkcount => 0,'links' => $link_array,'dircount' => 0,'directories' => $link_array);
$dir_array[''] = array('dirname' => '','level' => 1,'linkcount' => 0,'links' => $link_array,'dircount' => 0,'directories' => $link_array);
for($level[] = 0, $i=1, $j=1; isset($struct[$i]); $i++, $j++){
if (isset($struct[$i]['type'])){
if ($struct[$i]['type'] == 'open' && strtolower($struct[$i]['tag']) == 'dir'){
@ -670,4 +670,4 @@ class serendipity_plugin_linklist extends serendipity_plugin
}
/* vim: set sts=4 ts=4 expandtab : */
?>
?>