diff -r TNG/addnewacct.php TNG1403/addnewacct.php
2,3d1
< include("begin.php");
< include($cms['tngpath'] . "genlib.php");
5c3,4
< include($cms['tngpath'] . "$languages_path$language/text.php");
---
> include("tng_begin.php");
>
7d5
< include($cms['tngpath'] . "getlang.php");
21c19
< eval("\$email = \$$emailfield;");
---
> $email = $$emailfield;
90c88
< $dt_consented = $tng_user_consent ? $today : "";
---
> $dt_consented = !empty($tng_user_consent) ? $today : "";
111c109
< $gedcom = $assignedtree ? $assignedtree : "";
---
> $gedcom = !empty($assignedtree) ? $assignedtree : "";
diff -r TNG/admin_add2albumxml.php TNG1403/admin_add2albumxml.php
15a16,17
> $curpage = 0;
> $pagenav = $prevlink = $firstlink = $lastlink = $nextlink = "";
56c58
< if( $searchtree )
---
> if( !empty($searchtree) )
60c62
< if( $fileext )
---
> if( !empty($fileext) )
62c64
< if( $hsstat )
---
> if( !empty($hsstat) )
64c66
< if( $cemeteryID )
---
> if( !empty($cemeteryID) )
79c81
< $query = "SELECT $media_table.mediaID as mediaID, $medialinkID description, notes, thumbpath, mediatypeID, usecollfolder, datetaken, $media_table.gedcom FROM $media_table $join $wherestr ORDER BY description LIMIT $newoffset" . $maxsearchresults;
---
> $query = "SELECT $media_table.mediaID as mediaID, description, notes, thumbpath, mediatypeID, usecollfolder, datetaken, $media_table.gedcom FROM $media_table $wherestr ORDER BY description LIMIT $newoffset" . $maxsearchresults;
84c86
< $query = "SELECT count($media_table.mediaID) as mcount FROM $media_table $join $wherestr";
---
> $query = "SELECT count($media_table.mediaID) as mcount FROM $media_table $wherestr";
93c95
< if($albumID) {
---
> if( !empty($albumID) ) {
123a126
> $label = $mediatypes_display[$mtypeID] ? $mediatypes_display[$mtypeID] : $text[$mtypeID];
145c148
< echo "\n";
---
> echo "
\n";
154c157
< echo "
|
<
---
>
>
124c120
< $pagenav = get_browseitems_nav( $totrows, "admin_albums.php?searchstring=$searchstring&exactmatch=$exactmatch&offset", $maxsearchresults, 5 );
---
> $pagenav = get_browseitems_nav( $totrows, "admin_albums.php?searchstring=$searchstring&offset", $maxsearchresults, 5 );
128c124
< |