Commit bdb83f2b authored by Karl Denninger's avatar Karl Denninger

ZP-1284 Fix last few missed tabs. Released under the Affero GNU General Public...

ZP-1284 Fix last few missed tabs. Released under the Affero GNU General Public License (AGPL) version 3.
parent df408704
...@@ -204,7 +204,7 @@ class BackendStickyNote extends BackendDiff { ...@@ -204,7 +204,7 @@ class BackendStickyNote extends BackendDiff {
if (pg_result_status($this->_result) != PGSQL_TUPLES_OK) { if (pg_result_status($this->_result) != PGSQL_TUPLES_OK) {
ZLog::Write(LOGLEVEL_WARN, sprintf("BackendStickyNote->GetMessageList(Failed to return a valid message list, Postgres error [%s])", pg_last_error($this->_dbconn))); ZLog::Write(LOGLEVEL_WARN, sprintf("BackendStickyNote->GetMessageList(Failed to return a valid message list, Postgres error [%s])", pg_last_error($this->_dbconn)));
} else { } else {
$_affected = pg_affected_rows($this->_result); $_affected = pg_affected_rows($this->_result);
for ($_count = 0; $_count < $_affected; $_count++) { for ($_count = 0; $_count < $_affected; $_count++) {
$message = array(); $message = array();
$message["id"] = pg_fetch_result($this->_result, $_count, 0); $message["id"] = pg_fetch_result($this->_result, $_count, 0);
...@@ -262,7 +262,7 @@ class BackendStickyNote extends BackendDiff { ...@@ -262,7 +262,7 @@ class BackendStickyNote extends BackendDiff {
$_params = array(); $_params = array();
array_push($_params, $id); array_push($_params, $id);
$this->_result = pg_query_params($this->_dbconn, "select tag from categories where ordinal=$1", $_params); $this->_result = pg_query_params($this->_dbconn, "select tag from categories where ordinal=$1", $_params);
$_affected = pg_affected_rows($this->_result); $_affected = pg_affected_rows($this->_result);
if ($_affected > 0) { if ($_affected > 0) {
$_categories = array(); $_categories = array();
for ($_count = 0; $_count < $_affected; $_count++) { for ($_count = 0; $_count < $_affected; $_count++) {
...@@ -310,9 +310,9 @@ class BackendStickyNote extends BackendDiff { ...@@ -310,9 +310,9 @@ class BackendStickyNote extends BackendDiff {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendStickyNote->ChangeMessage(Message '%s')", $message)); ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendStickyNote->ChangeMessage(Message '%s')", $message));
// If we have a null ID then it's a new note; allocate an ordinal for // If we have a null ID then it's a new note; allocate an ordinal for
// it. Then insert into the database and return the stat pointer for it. // it. Then insert into the database and return the stat pointer for it.
// If we get an ID then it's an update; perform it and return stat // If we get an ID then it's an update; perform it and return stat
// pointer. // pointer.
// //
$_contents = stream_get_contents($message->asbody->data, 1024000); $_contents = stream_get_contents($message->asbody->data, 1024000);
if (!$id) { if (!$id) {
......
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