Vergleich inc/datahandlers/warnings.php - 1.8.26 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 68Zeile 68

$user = get_user($warning['uid']);



$user = get_user($warning['uid']);


		if(!$user['uid'])

		if(!$user)

		{
$this->set_error('error_invalid_user');
return false;

		{
$this->set_error('error_invalid_user');
return false;

Zeile 100Zeile 100

$post = get_post($warning['pid']);



$post = get_post($warning['pid']);


		if(!$post['pid'])

		if(!$post)

		{
$this->set_error('error_invalid_post');
return false;

		{
$this->set_error('error_invalid_post');
return false;

Zeile 397Zeile 397
			$query = $db->simple_select("warninglevels", "*", "percentage<={$this->new_warning_level}", array("order_by" => "percentage", "order_dir" => "desc"));
$new_level = $db->fetch_array($query);


			$query = $db->simple_select("warninglevels", "*", "percentage<={$this->new_warning_level}", array("order_by" => "percentage", "order_dir" => "desc"));
$new_level = $db->fetch_array($query);


			if($new_level['lid'])

			if(!empty($new_level) && $new_level['lid'])

			{
$expiration = 0;
$action = my_unserialize($new_level['action']);

			{
$expiration = 0;
$action = my_unserialize($new_level['action']);

Zeile 684Zeile 684
		$this->write_warning_data = array(
"uid" => (int)$warning['uid'],
"tid" => (int)$warning['type'],

		$this->write_warning_data = array(
"uid" => (int)$warning['uid'],
"tid" => (int)$warning['type'],

			"pid" => (int)$warning['pid'],

			"pid" => isset($warning['pid']) ? (int)$warning['pid'] : 0,

			"title" => $db->escape_string($warning['title']),
"points" => (int)$warning['points'],
"dateline" => TIME_NOW,

			"title" => $db->escape_string($warning['title']),
"points" => (int)$warning['points'],
"dateline" => TIME_NOW,