suppress warnings

This commit is contained in:
Steffen Schröder 2014-10-24 20:28:11 +02:00
parent b25171657c
commit 2a6ef42017
2 changed files with 3 additions and 3 deletions

View File

@ -404,7 +404,7 @@ class MapManager implements CallbackListener {
return; return;
} }
if (!file_put_contents($fullMapFileName, $file)) { if (!@file_put_contents($fullMapFileName, $file)) {
// Save error // Save error
$this->maniaControl->getChat()->sendError('Saving map failed!', $login); $this->maniaControl->getChat()->sendError('Saving map failed!', $login);
return; return;

View File

@ -265,7 +265,7 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis
$tempDir = FileUtil::getTempFolder(); $tempDir = FileUtil::getTempFolder();
$updateFileName = $tempDir . $pluginUpdateData->zipfile; $updateFileName = $tempDir . $pluginUpdateData->zipfile;
$bytes = file_put_contents($updateFileName, $updateFileContent); $bytes = @file_put_contents($updateFileName, $updateFileContent);
if (!$bytes || $bytes <= 0) { if (!$bytes || $bytes <= 0) {
$message = "Plugin {$actionNoun} failed: Couldn't save {$actionNoun} Zip!"; $message = "Plugin {$actionNoun} failed: Couldn't save {$actionNoun} Zip!";
if ($player) { if ($player) {
@ -288,7 +288,7 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis
$zip->extractTo(MANIACONTROL_PATH . 'plugins' . DIRECTORY_SEPARATOR); $zip->extractTo(MANIACONTROL_PATH . 'plugins' . DIRECTORY_SEPARATOR);
$zip->close(); $zip->close();
unlink($updateFileName); @unlink($updateFileName);
FileUtil::deleteTempFolder(); FileUtil::deleteTempFolder();
$messageExtra = ''; $messageExtra = '';