changeset 49:f8f6e0d3acaf

fix: bug
author Sushi-k <epgrec@park.mda.or.jp>
date Tue, 28 Jul 2009 19:06:04 +0900
parents 8fbe3913f214
children c18851a70d33
files changeReservation.php recomplete.php
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/changeReservation.php	Tue Jul 28 19:03:41 2009 +0900
+++ b/changeReservation.php	Tue Jul 28 19:06:04 2009 +0900
@@ -12,7 +12,7 @@
 $reserve_id = $_POST['reserve_id'];
 
 $dbh = false;
-if( $settings->mediatomb_update ) {
+if( $settings->mediatomb_update == 1 ) {
 	$dbh = @mysql_connect( $settings->db_host, $settings->db_user, $settings->db_pass );
 	if( $dbh !== false ) {
 		$sqlstr = "use ".$settings->db_name;
@@ -51,4 +51,4 @@
 
 exit("complete");
 
-?>
\ No newline at end of file
+?>
--- a/recomplete.php	Tue Jul 28 19:03:41 2009 +0900
+++ b/recomplete.php	Tue Jul 28 19:06:04 2009 +0900
@@ -14,7 +14,7 @@
 	if( file_exists( INSTALL_PATH .$settings->spool . "/". $rrec->path ) ) {
 		// 予約完了
 		$rrec->complete = '1';
-		if( $settings->mediatomb_update ) {
+		if( $settings->mediatomb_update == 1 ) {
 			// ちょっと待った方が確実っぽい
 			@exec("sync");
 			sleep(15);
@@ -41,4 +41,4 @@
 	exit( $e->getMessage() );
 }
 
-?>
\ No newline at end of file
+?>