diff options
author | Mario <mario@mariovavti.com> | 2022-10-26 18:12:56 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-10-26 18:12:56 +0000 |
commit | 40ae6b396f3760c4c4b6e4de776869a88ce07fce (patch) | |
tree | e54516ed5ca3d86faf24e1833c1b88294366f7a9 /include/plugin.php | |
parent | 9c117ffa0546d6131310ae175e16e5ebf63992a1 (diff) | |
download | volse-hubzilla-40ae6b396f3760c4c4b6e4de776869a88ce07fce.tar.gz volse-hubzilla-40ae6b396f3760c4c4b6e4de776869a88ce07fce.tar.bz2 volse-hubzilla-40ae6b396f3760c4c4b6e4de776869a88ce07fce.zip |
fix php warnings
Diffstat (limited to 'include/plugin.php')
-rw-r--r-- | include/plugin.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/plugin.php b/include/plugin.php index a17f5761d..ff5014c8b 100644 --- a/include/plugin.php +++ b/include/plugin.php @@ -851,6 +851,10 @@ function get_template_info($template){ foreach( $ll as $l ) { $l = trim($l, "\t\n\r */"); if ($l != ""){ + if (strpos($l, ':') === false) { + continue; + } + list($k, $v) = array_map("trim", explode(":", $l, 2)); $k = strtolower($k); if ($k == 'author' || $k == 'maintainer'){ |