[Cinemaru-svn] cinemaru-svn [158] cinemaru_related_movie_get関数の警告修正。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 1月 13日 (火) 01:08:41 JST


Revision: 158
          http://svn.sourceforge.jp/view?root=cinemaru&view=rev&rev=158
Author:   asben
Date:     2009-01-13 01:08:40 +0900 (Tue, 13 Jan 2009)

Log Message:
-----------
cinemaru_related_movie_get関数の警告修正。

Modified Paths:
--------------
    trunk/cinemaru/include/db.php

Modified: trunk/cinemaru/include/db.php
===================================================================
--- trunk/cinemaru/include/db.php	2009-01-10 19:52:42 UTC (rev 157)
+++ trunk/cinemaru/include/db.php	2009-01-12 16:08:40 UTC (rev 158)
@@ -643,6 +643,7 @@
 // return   : Related movie information
 // author   : asben @ bookmark
 // date     : 2009/1/7
+//            2009/1/13
 // Reference keyword: related_movie_get
 //--------------------------------------------------------------------------------
 function cinemaru_related_movie_get($iOwn_id, $arrTagsInfo, $iLimit) {
@@ -664,7 +665,8 @@
     $sql = 'SELECT DISTINCT ' . $c2 . ' FROM ' . $xoopsDB->prefix($mydirname . '_movie') . ' AS m, ';
     $sql .= $xoopsDB->prefix($mydirname . '_tag_movie') . ' AS tm ';
     $sql .= ' WHERE tm.movie_id = m.id';
-    if(isset($arrTagsInfo)) {
+    $haveTags = array(); // 2009-1-13
+	if(isset($arrTagsInfo)) {
 		foreach( $arrTagsInfo as $val ) {
 		   $haveTags[] = 'tm.tags_id = ' . intval($val['tags_id']);
 		}



Cinemaru-svn メーリングリストの案内
Back to archive index