mysql_store_result can return NULL either when there is no result set or when we got an error from the server. The latter case is not checked for; this patch fixes that.
Log in to post a comment.