fix php 4 error
This commit is contained in:
parent
5dd32446d5
commit
01d5850cb4
|
@ -23,7 +23,12 @@ class ComicPressDBInterface {
|
|||
}
|
||||
|
||||
function _get_categories_to_exclude($category = null) {
|
||||
return (is_null($category)) ? $this->_non_comic_categories : array_values(array_diff($this->_all_categories, array($category)));
|
||||
$result = array_diff($this->_all_categories, array($category));
|
||||
if (is_array($result)) {
|
||||
return (is_null($category)) ? $this->_non_comic_categories : array_values($result);
|
||||
} else {
|
||||
return $this->_non_comic_categories;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue