$kampf_a = mysql_fetch_array(mysql_query('select Timestampdiff(Second,now(),dauer) as dauer from quests where charid = '.$char_id));
$kampf_a = mysql_fetch_array(mysql_query('select Timestampdiff(Second,now(),dauer) as dauer, Timestampdiff(Second,now(),cancel) as cancel from quests where charid = '.$char_id));
echo '<p>Schatz Suche abbrechen ist derzeit nicht moeglich! Wir versuchen es so schnell wie moeglich wieder zu aktivieren.</p>';
$kampf_a = mysql_fetch_array(mysql_query('select Timestampdiff(Second,now(),dauer) as dauer, Timestampdiff(Second,now(),cancel) as cancel from quests where charid = '.$char_id));
displayErrorMessage(NULL,'Bitte um Verstaendnis!', displayIndexBackLink());
$zeit_in_sek = $kampf_a['dauer'];
$cancel_zeit_in_sek = $kampf_a['cancel'];
# if ($true == 1) {
if ($cancel_zeit_in_sek <= 0) {
# interruptSchatzSuche($char_id);
if ($true == 1) {
# displayErrorMessage(NULL,'Die Schatzsuche wurde abgebrochen!', displayIndexBackLink());
interruptSchatzSuche($char_id);
# } else {
displayErrorMessage(NULL,'Die Schatzsuche wurde abgebrochen!', displayIndexBackLink());