X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhovercard.php;h=65b03f2b9470f96163c9f3b67cc819548df0a092;hb=5b80a1fcaa04e96992cc54c27e8437a88df591f1;hp=65b75b32112df4ab9954fd40664d040d54b4b004;hpb=860f11e71b8aa4a61c956d3dc1a14c907b8c62cc;p=friendica.git diff --git a/mod/hovercard.php b/mod/hovercard.php index 65b75b3211..65b03f2b94 100644 --- a/mod/hovercard.php +++ b/mod/hovercard.php @@ -11,7 +11,7 @@ require_once("include/socgraph.php"); require_once("include/Contact.php"); -function hovercard_init(&$a) { +function hovercard_init(App $a) { // Just for testing purposes $_GET["mode"] = "minimal"; } @@ -75,7 +75,7 @@ function hovercard_content() { 'tags' => $contact["keywords"], // 'nsfw' => intval($contact["nsfw"]), // 'server_url' => $contact["server_url"], - 'bd' => (($contact["birthday"] == "0000-00-00") ? "" : $contact["birthday"]), + 'bd' => (($contact["birthday"] <= '0001-01-01') ? "" : $contact["birthday"]), // 'generation' => $contact["generation"], 'account_type' => account_type($contact), 'actions' => $actions, @@ -96,10 +96,10 @@ function hovercard_content() { /** * @brief Get the raw content of a template file - * + * * @param string $template The name of the template * @param string $root Directory of the template - * + * * @return string|bool Output the raw content if existent, otherwise false */ function get_template_content($template, $root = "") {