Specify an empty string properly to avoid an error.
This commit is contained in:
parent
7fb9020255
commit
76a620d129
@ -123,9 +123,9 @@ class Admin_TagsMap_Controller extends Admin_Controller {
|
||||
->where("tag_id", $tag_id)
|
||||
->find_all();
|
||||
if (count($existingGPS) == 0) {
|
||||
$tagsgps_group->input("gps_latitude")->label(t("Latitude"))->value();
|
||||
$tagsgps_group->input("gps_longitude")->label(t("Longitude"))->value();
|
||||
$tagsgps_group->textarea("gps_description")->label(t("Description"))->value();
|
||||
$tagsgps_group->input("gps_latitude")->label(t("Latitude"))->value("");
|
||||
$tagsgps_group->input("gps_longitude")->label(t("Longitude"))->value("");
|
||||
$tagsgps_group->textarea("gps_description")->label(t("Description"))->value("");
|
||||
} else {
|
||||
$tagsgps_group->input("gps_latitude")->label(t("Latitude"))->value($existingGPS[0]->latitude);
|
||||
$tagsgps_group->input("gps_longitude")->label(t("Longitude"))->value($existingGPS[0]->longitude);
|
||||
|
Reference in New Issue
Block a user