We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 55db7429 authored by mattl's avatar mattl

Using empty on a function return value (thanks mrvdb)

Source: https://gist.github.com/mrvdb/0b49dd3c580bcfbe1358
parent 0cefab36
......@@ -69,7 +69,7 @@ class NewnoticeAction extends FormAction
protected function doPreparation()
{
foreach(array('inreplyto') as $opt) {
if (!empty($this->trimmed($opt))) {
if ($this->trimmed($opt)) {
$this->formOpts[$opt] = $this->trimmed($opt);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment