if (EXT_IS_ACTIVE("country")) {
// Add country code
$MORE .= ", country_code";
-} // END - if
+} else {
+ // Add direct value
+ $MORE .= ", country";
+}
// Init unset data (bad that we change $_GET here!)
if (empty($_GET['letter'])) { $_GET['letter'] = _ALL2; }
if ($REFS > 0) $REFS = $BASE."&what=list_refs&u_id=".$uid."\">".$REFS."</A>]";
if ($CATS > 0) $CATS = $BASE."&what=list_cats&u_id=".$uid."\">".$CATS."</A>]";
+ // Calculate timestamp for birthday
+ $stamp = MAKE_DATETIME(mktime(0, 0, 0, $DATA['birth_month'], $DATA['birth_day'], $DATA['birth_year']), "3");
+
+ // Is this above zero?
+ if ($stamp > 0) {
+ // Then use it
+ define('_BIRTHDAY', $stamp);
+ } else {
+ // Zero or below so set zero!
+ define('_BIRTHDAY', MAKE_DATETIME(0, "3"));
+ }
+
// Prepare data for template
- define('_BIRTHDAY', MAKE_DATETIME(mktime(0, 0, 0, $DATA['birth_month'], $DATA['birth_day'], $DATA['birth_year']), "3"));
define('_REFS' , $REFS);
define('_CATS' , $CATS);
define('_LINKS', $LINKS);
if (EXT_IS_ACTIVE("country")) {
// Then overwrite country information
$content['country'] = COUNTRY_GENERATE_INFO($content['country_code']);
- } elseif ($content['country'] == 0) {
+ } elseif ($content['country'] == "") {
// Zero ID???
$content['country'] = "???";
}