Don't keep appending .json to image field.
This commit is contained in:
1 parent
d8591d5625
commit
db2d4fcbc7
1 file changed
+1
@@ -78,6 +78,7 @@ foreach ($lga_list as $lga) {
|
||||
foreach ($lga_candidates as $candidate) {
|
||||
/* Add extension to photo hash */
|
||||
foreach ($dir_files as $file) {
|
||||
if (preg_match("/\.json$/", $file)) continue;
|
||||
if (strstr($file, $candidate['Photo'])) {
|
||||
$candidate['Photo'] = $file;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user