diff options
author | Jonathan Marshall <jmarshall@never.you.mind> | 2012-04-13 08:06:44 +1200 |
---|---|---|
committer | Jonathan Marshall <jmarshall@never.you.mind> | 2012-04-13 08:11:26 +1200 |
commit | 2293aae80b83466221565250f02976e4cd5414af (patch) | |
tree | 8694c3ee70fe047d9d382dab1493c399f38a5cd3 | |
parent | 40a4b02682caf988129795e3bef3c82600cec53c (diff) |
only execute the actor table update if the thumb URLs isn't empty - fixes #12905
-rw-r--r-- | xbmc/video/VideoDatabase.cpp | 4 |
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; } |