From e7c337f9f34093a03e7496cf4b70d0896e3c9a04 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 21 Dec 2015 11:10:45 -0500 Subject: [PATCH] fix namespace for dbh --- scripts/ZoneMinder/lib/ZoneMinder/Storage.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Storage.pm b/scripts/ZoneMinder/lib/ZoneMinder/Storage.pm index d89599e61..f6244b714 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Storage.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Storage.pm @@ -80,10 +80,10 @@ sub load { my $type = ref $self; if ( ! $data ) { #$log->debug("Object::load Loading from db $type"); - $data = $ZoneMinder::dbh->selectrow_hashref( 'SELECT * FROM Storage WHERE Id=?', {}, $$self{Id} ); + $data = $ZoneMinder::Database::dbh->selectrow_hashref( 'SELECT * FROM Storage WHERE Id=?', {}, $$self{Id} ); if ( ! $data ) { - if ( $ZoneMinder::dbh->errstr ) { - Error( "Failure to load Storage record for $$self{id}: Reason: " . $ZoneMinder::dbh->errstr ); + if ( $ZoneMinder::Database::dbh->errstr ) { + Error( "Failure to load Storage record for $$self{id}: Reason: " . $ZoneMinder::Database::dbh->errstr ); } # end if } # end if } # end if ! $data