mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 21:16:23 +05:30
PHP 5.3 backward compatibility
This commit is contained in:
parent
40181f0de6
commit
3278f6e799
2 changed files with 18 additions and 4 deletions
|
|
@ -570,8 +570,14 @@ function get_category_info($category)
|
|||
}
|
||||
}
|
||||
|
||||
if (strtolower($category ?? '') == 'uncategorized') {
|
||||
return default_category();
|
||||
if (defined('PHP_MAJOR_VERSION') && PHP_MAJOR_VERSION < 7) {
|
||||
if (strtolower($category) == 'uncategorized') {
|
||||
return default_category();
|
||||
}
|
||||
} else {
|
||||
if (strtolower($category ?? '') == 'uncategorized') {
|
||||
return default_category();
|
||||
}
|
||||
}
|
||||
|
||||
return $tmp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue