// TODO: In a future update, stop the update script when running courier
if($conf['courier']['installed']==true){
swriteln('WARNING: You are running Courier. We are removing support for Courier from ISPConfig. Migrate your system to Dovecot as soon as possible. See https://www.howtoforge.com/community/threads/migrate-from-courier-to-dovecot-on-your-ispconfig-managed-mailserver.88523/ for more information.');
$record_count=$app->db->queryOneRecord("SELECT count(*) AS anzahl FROM ??".($app->listform->listDef['additional_tables']!=''?','.$app->listform->listDef['additional_tables']:'')." WHERE $sql_where",$table);
$record_count=$app->db->queryOneRecord("SELECT count(*) AS anzahl FROM ??".(isset($app->listform->listDef['additional_tables'])&&$app->listform->listDef['additional_tables']!=''?','.$app->listform->listDef['additional_tables']:'')." WHERE $sql_where",$table);
$sql='SELECT '.$select.$extselect.' FROM '.$app->listform->listDef['table'].($app->listform->listDef['additional_tables']!=''?','.$app->listform->listDef['additional_tables']:'')."$join WHERE $sql_where$order_by_sql";
$sql='SELECT '.$select.$extselect.' FROM '.$app->listform->listDef['table'].(isset($app->listform->listDef['additional_tables'])&&$app->listform->listDef['additional_tables']!=''?','.$app->listform->listDef['additional_tables']:'')."$join WHERE $sql_where$order_by_sql";