forked from Cavemanon/cavepaintings
Have get_arg never return null
90% of places assume it will never return null, and they will break in weird ways if it does return null
This commit is contained in:
@ -103,7 +103,7 @@ class Wiki extends Extension
|
||||
{
|
||||
global $page, $user;
|
||||
if ($event->page_matches("wiki")) {
|
||||
if (is_null($event->get_arg(0)) || strlen(trim($event->get_arg(0))) === 0) {
|
||||
if ($event->count_args() == 0 || strlen(trim($event->get_arg(0))) === 0) {
|
||||
$title = "Index";
|
||||
} else {
|
||||
$title = $event->get_arg(0);
|
||||
|
Reference in New Issue
Block a user