Commit a40e5787 authored by Karl Denninger's avatar Karl Denninger

ZP-1284 More variable cleanup. Released under the Affero GNU General Public...

ZP-1284 More variable cleanup. Released under the Affero GNU General Public License (AGPL) version 3.
parent b0b21e0f
......@@ -512,7 +512,7 @@ class BackendStickyNote extends BackendDiff {
return $_notifications;
}
$_param = array();
array_push($_param, $_user, $_domain);
array_push($_param, $this->_user, $this->_domain);
$this->_result = pg_query_params($this->_dbconn, "select extract(epoch from modified)::integer from note where login=$1 and domain=$2 and deleted is false order by modified desc limit 1", $_param);
if (pg_result_status($this->_result) != PGSQL_TUPLES_OK) {
ZLog::Write(LOGLEVEL_WARN, sprintf("BackendStickyNote->ChangesSink(Failed to return a valid change list)"));
......@@ -529,7 +529,7 @@ class BackendStickyNote extends BackendDiff {
}
pg_free_result($this->_result);
if (empty($_notifications)) {
sleep($_timeout);
sleep($timeout);
}
return($_notifications);
}
......
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