newline fixes

git-svn-id: http://www.observium.org/svn/observer/trunk@1058 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-04-08 22:47:50 +00:00
parent 3bf75f8728
commit f97599fd6a
2 changed files with 2 additions and 3 deletions

View File

@@ -26,7 +26,6 @@ if($debug) {
$month = time() - (31 * 24 * 60 * 60);
$year = time() - (365 * 24 * 60 * 60);
# Load the settings for Multi-Tenancy.
if (is_array($config['branding'])) {
if ($config['branding'][$_SERVER['SERVER_NAME']]) {

View File

@@ -224,7 +224,7 @@ while ($device = mysql_fetch_array($device_query)) {
$poll_update_query .= " WHERE `device_id` = '" . $device['device_id'] . "'";
if($debug) {echo("Updating " . $device['hostname'] . " - $poll_update_query \n");}
$poll_update_result = mysql_query($poll_update_query);
if(mysql_affected_rows() == "1") { echo("UPDATED!"); } else { echo("NOT UPDATED!"); }
if(mysql_affected_rows() == "1") { echo("UPDATED!\n"); } else { echo("NOT UPDATED!\n"); }
} else {
echo("No Changes to " . $device['hostname'] . "\n");
}