aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Marshall <jmarshall@never.you.mind>2012-04-13 08:06:44 +1200
committerJonathan Marshall <jmarshall@never.you.mind>2012-04-13 08:11:26 +1200
commit2293aae80b83466221565250f02976e4cd5414af (patch)
tree8694c3ee70fe047d9d382dab1493c399f38a5cd3
parent40a4b02682caf988129795e3bef3c82600cec53c (diff)
only execute the actor table update if the thumb URLs isn't empty - fixes #12905
-rw-r--r--xbmc/video/VideoDatabase.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/xbmc/video/VideoDatabase.cpp b/xbmc/video/VideoDatabase.cpp
index 3ed8087cb9..a0d7d3c23b 100644
--- a/xbmc/video/VideoDatabase.cpp
+++ b/xbmc/video/VideoDatabase.cpp
@@ -1239,8 +1239,10 @@ int CVideoDatabase::AddActor(const CStdString& strActor, const CStdString& thumb
m_pDS->close();
// update the thumb url's
if (!thumbURLs.IsEmpty())
+ {
strSQL=PrepareSQL("update actors set strThumb='%s' where idActor=%i",thumbURLs.c_str(),idActor);
- m_pDS->exec(strSQL.c_str());
+ m_pDS->exec(strSQL.c_str());
+ }
return idActor;
}