diff options
Diffstat (limited to 'app/class/art2.php')
-rw-r--r-- | app/class/art2.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/class/art2.php b/app/class/art2.php index 56bc74e..a43d35e 100644 --- a/app/class/art2.php +++ b/app/class/art2.php @@ -296,7 +296,11 @@ class Art2 public function customhead($type = "string") { - return $this->customhead; + if($type === 'string') { + return $this->customhead; + } elseif($type === 'int') { + return substr_count($this->customhead, PHP_EOL) + 1; + } } public function footer($type = "string") |