Commit 6681e855 authored by Franco Fichtner's avatar Franco Fichtner

dyndns: fix a crash report

(cherry picked from commit 041702d2)
parent 0fb3fd78
......@@ -552,6 +552,9 @@
/* Function to find old values of records in Route 53 */
if(!function_exists('Searchrecords')) {
function SearchRecords($records, $name) {
if (!is_array($records)) {
return false;
}
$result = array();
foreach($records as $record) {
if(strtolower($record['Name']) == strtolower($name)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment