File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
scripts/ZoneMinder/lib/ZoneMinder Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ sub load {
133133 $data = $ZoneMinder::Database::dbh -> selectrow_hashref(" SELECT * FROM `$table ` WHERE `$primary_key `=?" , {}, $$self {$primary_key });
134134 if ( !$data ) {
135135 if ( $ZoneMinder::Database::dbh -> errstr ) {
136- Error( " Failure to load Object record for $$self {$primary_key }: Reason: " . $ZoneMinder::Database::dbh -> errstr );
136+ Error( " Failure to load Object record for $type id: $ $self {$primary_key }: Reason: " . $ZoneMinder::Database::dbh -> errstr );
137137 } else {
138138 Debug(" No Results Loading $type from $table WHERE $primary_key = $$self {$primary_key }" );
139139 } # end if
@@ -173,7 +173,7 @@ sub lock_and_load {
173173 my $data = $ZoneMinder::Database::dbh -> selectrow_hashref(" SELECT * FROM `$table ` WHERE `$primary_key `=? FOR UPDATE" , {}, $$self {$primary_key });
174174 if ( ! $data ) {
175175 if ( $ZoneMinder::Database::dbh -> errstr ) {
176- Error(" Failure to load Object record for $$self {$primary_key }: Reason: " .$ZoneMinder::Database::dbh -> errstr);
176+ Error(" Failure to load Object record for $type id: $ $self {$primary_key }: Reason: " .$ZoneMinder::Database::dbh -> errstr);
177177 } else {
178178 Debug(" No Results Lock and Loading $type from $table WHERE $primary_key = $$self {$primary_key }" );
179179 } # end if
You can’t perform that action at this time.
0 commit comments