Frontend: Hinweis entfernt keine Freigeschaltet-Meldung mehr im Formular und Ergebnis; Inhalte bleiben sichtbar ohne Banner.
All checks were successful
Deploy Workshop-Wahlen (DEV / PROD) / deploy (push) Successful in 13s
All checks were successful
Deploy Workshop-Wahlen (DEV / PROD) / deploy (push) Successful in 13s
This commit is contained in:
@@ -16,7 +16,8 @@ add_shortcode('konficastle_workshopwahl', function($atts) {
|
||||
|
||||
$wahl = $wpdb->get_row($wpdb->prepare("SELECT * FROM {$wpdb->prefix}kc_wahlen WHERE id=%d", $wahl_id));
|
||||
if(!$wahl || !$wahl->freigegeben) {
|
||||
return $debug_output . '<div class="kc-error-msg">Die Workshopwahl ist aktuell nicht freigeschaltet.</div>';
|
||||
// Keine Fehlermeldung im Frontend anzeigen; Formular ausblenden
|
||||
return '';
|
||||
}
|
||||
|
||||
// Ermittle erlaubte Workshops pro Phase für diese Wahl.
|
||||
|
||||
Reference in New Issue
Block a user