diff --git a/library/includes/cron/cron_init.php b/library/includes/cron/cron_init.php
index 71fb7f0a..a2fbca92 100644
--- a/library/includes/cron/cron_init.php
+++ b/library/includes/cron/cron_init.php
@@ -13,7 +13,7 @@ function cron_get_file_lock ()
{
# bb_log(date('H:i:s - ') . getmypid() .' -x-- FILE-LOCK try'. LOG_LF, CRON_LOG_DIR .'cron_check');
- $lock_obtained = rename(CRON_ALLOWED, CRON_RUNNING);
+ $lock_obtained = @rename(CRON_ALLOWED, CRON_RUNNING);
}
elseif (file_exists(CRON_RUNNING))
{
@@ -22,7 +22,7 @@ function cron_get_file_lock ()
elseif (!file_exists(CRON_ALLOWED) && !file_exists(CRON_RUNNING))
{
file_write('', CRON_ALLOWED);
- $lock_obtained = rename(CRON_ALLOWED, CRON_RUNNING);
+ $lock_obtained = @rename(CRON_ALLOWED, CRON_RUNNING);
}
return $lock_obtained;
@@ -30,10 +30,7 @@ function cron_get_file_lock ()
function cron_track_running ($mode)
{
- if (!defined('CRON_STARTMARK'))
- {
- define('CRON_STARTMARK', TRIGGERS_DIR . 'cron_started_at_' . date('Y-m-d_H-i-s') . '_by_pid_' . getmypid());
- }
+ @define('CRON_STARTMARK', TRIGGERS_DIR .'cron_started_at_'. date('Y-m-d_H-i-s') .'_by_pid_'. getmypid());
if ($mode == 'start')
{
diff --git a/library/includes/functions.php b/library/includes/functions.php
index f1ea89f6..c81eb1b6 100644
--- a/library/includes/functions.php
+++ b/library/includes/functions.php
@@ -2597,7 +2597,7 @@ function create_magnet ($infohash, $auth_key, $name)
}
$passkey_url = $passkey ? "?{$bb_cfg['passkey_key']}=$auth_key" : '';
- return '
';
+ return '
';
}
function set_die_append_msg ($forum_id = null, $topic_id = null, $group_id = null)
diff --git a/library/includes/functions_dev.php b/library/includes/functions_dev.php
index 83b43128..6f1ba13c 100644
--- a/library/includes/functions_dev.php
+++ b/library/includes/functions_dev.php
@@ -29,11 +29,11 @@ function get_sql_log ()
if (!empty($datastore->db->dbg))
{
- $log .= get_sql_log_html($datastore->db, "cache: datastore [{$datastore->db->engine}]");
+ $log .= get_sql_log_html($datastore->db, 'cache: datastore ['.$datastore->db->engine.']');
}
else if(!empty($datastore->dbg))
{
- $log .= get_sql_log_html($datastore, "cache: datastore [{$datastore->engine}]");
+ $log .= get_sql_log_html($datastore, 'cache: datastore ['.$datastore->engine.']');
}
return $log;
diff --git a/modcp.php b/modcp.php
index 823f9b0a..4e66804a 100644
--- a/modcp.php
+++ b/modcp.php
@@ -565,8 +565,8 @@ switch ($mode)
sync('forum', array($forum_id, $new_forum_id));
//bot
- $message = $lang['TOPIC_SPLIT'] . '
' . $lang['TOPIC_SPLIT_OLD'] . '';
- $message .= ' :: ' . $lang['TOPIC_SPLIT_NEW'] . '';
+ $message = $lang['TOPIC_SPLIT'] .'
'. $lang['TOPIC_SPLIT_OLD'] .'';
+ $message .= ' :: '. $lang['TOPIC_SPLIT_NEW'] .'';
// Log action
$log_action->mod('mod_topic_split', array(