Fixed E_NOTICE when no 'term' was provided (#5391)
Fixed E_NOTICE when no 'term' was provided (#5391)

* Fixed E_NOTICE when no 'term' was provided, maybe better encapsulate this whole
$_GET, $_POST and $_SESSION thing into a `Request` class?

Signed-off-by: Roland Häder <0d270388f2f92757a5de0f4bd891d3b392c44c4f@mxchange.org>

* Rewrote to recommendation by @MrPetovan which results in really nicer code.

Signed-off-by: Roland Häder <0d270388f2f92757a5de0f4bd891d3b392c44c4f@mxchange.org>

fabrixxm/friendica,tobiasd/friendica,annando/friendica,friendica/friendica,friendica/friendica,tobiasd/friendica,fabrixxm/friendica,fabrixxm/friendica,friendica/friendica,tobiasd/friendica,annando/friendica,annando/friendica,fabrixxm/friendica,fabrixxm/friendica,tobiasd/friendica,annando/friendica,annando/friendica,friendica/friendica,friendica/friendica,tobiasd/friendica