<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[TNF : Tatter Network Foundation forum - blog/index.php 파일에서 에러 발생했습니다.]]></title>
	<link rel="self" href="http://forum.tattersite.com/ko/extern.php?action=feed&amp;tid=2516&amp;type=atom"/>
	<updated>2007-01-05T10:44:46Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=2516</id>
		<entry>
			<title type="html"><![CDATA[RSS 답글: blog/index.php 파일에서 에러 발생했습니다.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=14850#p14850"/>
			<content type="html"><![CDATA[<p>카운터 변수가 비어있거나 0일때 발생하는 예외 사항이어서 <br />위의 경우 처럼 수정한 건데... 예외만 발생하지 않으면 되니깐요...^^<br />근데...테터툴즈 홈페이지가 너무 이쁘게 리뉴얼 되었네요...^^</p>]]></content>
			<author>
				<name><![CDATA[smurf]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=830</uri>
			</author>
			<updated>2007-01-05T10:44:46Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=14850#p14850</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: blog/index.php 파일에서 에러 발생했습니다.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=14831#p14831"/>
			<content type="html"><![CDATA[<p>카운트로 넘어오는 값이 없을 경우의 예외 처리로 작동할테니 괜찮지 않을까요?</p>]]></content>
			<author>
				<name><![CDATA[inureyes]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=2</uri>
			</author>
			<updated>2007-01-05T07:20:19Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=14831#p14831</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: blog/index.php 파일에서 에러 발생했습니다.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=14830#p14830"/>
			<content type="html"><![CDATA[<p>entriesOnPage 등 $blog의 값이 이상한 것이니 위처럼 처리하면 안될 것 같네요.</p>]]></content>
			<author>
				<name><![CDATA[gendoh]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=17</uri>
			</author>
			<updated>2007-01-05T07:10:53Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=14830#p14830</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: blog/index.php 파일에서 에러 발생했습니다.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=14823#p14823"/>
			<content type="html"><![CDATA[<p>처리했습니다. <img src="http://forum.tattersite.com/ko/img/smilies/smile.png" width="15" height="15" alt="smile" /> <a href="http://dev.tattertools.com/changeset/2768">r2768</a>입니다.</p><p>감사합니다^^</p>]]></content>
			<author>
				<name><![CDATA[inureyes]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=2</uri>
			</author>
			<updated>2007-01-05T06:50:07Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=14823#p14823</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[blog/index.php 파일에서 에러 발생했습니다.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=14817#p14817"/>
			<content type="html"><![CDATA[<p>안녕하세요. 마루호스팅의 블로그호스팅 담당자입니다.</p><p>저희 고객분께서 테터툴즈 1.1.0.2&nbsp; 버전을 다운로드 받아서 설치를 하셨는데, </p><p>관리자에서 글을 써는데도, index 페이지에서 글이 출력이 안된다고 하셔서 </p><p>소스를 파악하던중에 문제가 있어서 이렇게 글을 올리게 되었습니다.</p><p>blog/index.php 파일의</p><p>fetchWithPaging($sql,$page,$count,$url=null,$prefix=&#039;?page=&#039;) 함수에서</p><p>998 라인에 있는 </p><p>$paging[&#039;pages&#039;]=intval(ceil($paging[&#039;total&#039;]/$count)); </p><p>부분에서 문제가 발생하였습니다.</p><p>실제로 글을 3개를 올려서 카운터변수에 값이 들어가야 하나,&nbsp; 고객분의 소스에서는 </p><p>카운터에 값이 들어가지 않아서 </p><p>0 으로 나누기가 되어 예외가 발생하여 글이 출력이 되지 않았습니다.</p><p>그래서, 그 위라인에 </p><p>if(!$count)&nbsp; $count=1; </p><p>로 해서 카운터 변수를 초기화 시켜주는 부분을 추가해서 해결해 드렸습니다.</p><p>혹시 이런 종류의 에러가 또 발생할지 몰라서 이렇게 글을 올려드리오니, </p><p>추후 버전 작업시에 참고하시길 바랍니다.</p><p>감사합니다.</p>]]></content>
			<author>
				<name><![CDATA[smurf]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=830</uri>
			</author>
			<updated>2007-01-05T05:51:47Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=14817#p14817</id>
		</entry>
</feed>
