Skip to content

Commit

Permalink
Check if parameter '$data' is an array in function 'startSectionEdit()'.
Browse files Browse the repository at this point in the history
  • Loading branch information
lpaulsen93 committed Jan 24, 2018
1 parent f0716bd commit 0fc5659
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/parser/xhtml.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
* @author Adrian Lang <lang@cosmocode.de>
*/
public function startSectionEdit($start, $data) {
if (!is_array($data)) {
msg('startSectionEdit: $data is NOT an array!', -1);
return '';
}
$data['secid'] = ++$this->lastsecid;
$data['start'] = $start;
$this->sectionedits[] = $data;
Expand Down

0 comments on commit 0fc5659

Please sign in to comment.