Skip to content

Commit

Permalink
Update yandexweather.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
directman66 committed Sep 25, 2018
1 parent 825670c commit 937e9b5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/yandexweather/yandexweather.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -651,9 +651,12 @@ function sayforecast() {


function config_mycity($id=213) {
SQLExec("update yaweather_cities set mycity=0");

//SQLExec($rec);
if ($id<>"") SQLExec("update yaweather_cities set mycity=1 WHERE ID=".$id );
if ($id<>"") {
SQLExec("update yaweather_cities set mycity=0");
SQLExec("update yaweather_cities set mycity=1 WHERE ID=".$id );
}
//SQLExec($rec);

}
Expand Down

0 comments on commit 937e9b5

Please sign in to comment.