ddb_api::get_record_details

fs_massimo

New member
I'm starting to use ddb_api::get_record_details() and I've noticed that if it doesn't find any matching records it throws the error 'Unexpected error, more than one records having same ID' when in fact that's not the case. I tried changing line 92 of ddb_api.php from "if ($num_rows !== 1){" to "if ($num_rows > 1){" and everything seems ok, but I don't know if it can create problems elsewhere. Naturally after calling ddb_api::get_record_details() it would be better to check that the result is not NULL to avoid a PHP Warning message in the error log
 
Top