Dee_ee: empty tabelle

Beitrag lesen

Hi,

["user_icq"]=>  string(0)
Hilft uns das weiter?

ja, das besagt nämlich, dass Deine Variable $uinfo etwas enthält, und zwar mindestens den Key 'user_icq'. Damit ist Deine Prüfung auf empty() hinfällig.

Cheatah

Hallo Cheatah,

ich habs jetzt mal so probiert, meintest du das so? aber es klappt leider immer noch nicht.. die tabelle infos erscheint trotzdem, wenn kein msn oder icq angegeben ist..

if (empty($uinfo['user_msnm']) || empty($uinfo['user_icq']) echo "<td>Infos:</td>\n";

und dann die beiden ausgabetabellen wieder dran:
if (!empty($uinfo['user_msn'])) echo "<tr valign="top"><td" . _MSNM . ":</td> <td>" . PrepareToDisplay($uinfo['user_msnm']) . "</td></tr>\n";

if (!empty($uinfo['user_icq'])) echo "<tr valign="top"><td" . _ICQ . ":</td> <td>" . PrepareToDisplay($uinfo['user_icq']) . "</td></tr>\n";