Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthormortum
    • CommentTimeDec 22nd 2005
    File: gallery.php
    Function: the_gallery()

    Somehow, the function empty() does not determine value of $row["unix_exif_date_taken"] (EXIF_date_taken in MySQL) and therefore $row["unix_date_submitted"] always overrides in:

    // The original code
    $date_taken = !empty($row["unix_exif_date_taken"]) ? $row["unix_exif_date_taken"] : $row["unix_date_submitted"];

    In order to display the date when photo was actually taken, I had to:

    // Hack!
    $date_taken = $row["unix_exif_date_taken"] ? $row["unix_exif_date_taken"] : $row["unix_date_submitted"];

    Or am I doing something wrong?

    Thank you :)