ich habe beim dem Liga 2.0 Modul von Mairu einen Fehler.
Fatal error: Call to undefined function: array_combine() in /var/www/web1208/html/ilchClan11o/include/admin/liga/leagues.php on line 36
<?php /** * Liga Modul (für ilchClan 1.1) * Version 2.0 * written by Mairu * * admin / leagues */ if ($menu->getA(2) == 'd') { db_query("DELETE FROM `prefix_liga_league` WHERE id = " . $menu->getE(2)); } // Liga erstellen if (isset($_POST['newentry'])) { db_query("INSERT INTO `prefix_liga_league` (name, type, green, red) VALUES ('" . escape($_POST['name'], 'string') . "', '" . escape($_POST['type'],'string') . "', " . escape($_POST['green'], 'integer') . ", " . escape($_POST['red'], 'integer') . ")"); } // Liga ändern if (isset($_POST['change'])) { db_query("UPDATE `prefix_liga_league` SET name = '" . escape($_POST['name'], 'string') . "', green = " . escape($_POST['green'], 'integer') . ", red = " . escape($_POST['red'], 'integer') . " WHERE id = " . escape($_POST['id'], 'integer')); } // Ausgabearray füllen if ($menu->getA(2) == 'e') { $lid = $menu->getE(2); $arow = db_fetch_assoc(db_query("SELECT * FROM `prefix_liga_league` WHERE id = " . $lid)); $arow['sid'] = ' - ID: ' . $lid; $arow['submit'] = 'change'; $arow['subval'] = 'ändern'; } else { $types = array_keys($ligaTeamTypes); $arow = array('id' => '', 'sid' => '', 'name' => '', 'green' => '', 'red' => '', 'submit' => 'newentry', 'subval' => 'eintragen', 'type' => '<select name="type"><option value="-1">bitte auswählen</option>'.arlistee('', array_combine($types, $types)).'</select>' ); } $tpl = new tpl('liga/leagues', 1); $tpl->out(0); $sql = db_query("SELECT a.id, a.name, a.type, COUNT(b.id) AS csid FROM `prefix_liga_league` a LEFT JOIN `prefix_liga_season` b ON a.id = b.lid AND b.status = 1 GROUP BY a.id, a.name, a.type"); while ($row = db_fetch_assoc($sql)) { $tpl->set_ar_out($row, 1); } $tpl->set_ar_out($arow, 2); ?>
hab keine Ahnung woran das liegt, der fehler kommt immer auch bei ganz neuer installation des clanscriptes. hoffe jemand kann mir helfen.