<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Remove double return in hooks.inc]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7055&amp;type=atom" />
	<updated>2017-10-27T07:03:24Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7055</id>
		<entry>
			<title type="html"><![CDATA[Re: Remove double return in hooks.inc]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29242#p29242" />
			<content type="html"><![CDATA[<p>Yes, indeed in default_get_dispatchable_quantity() the last line was sparse. <a href="https://github.com/FrontAccountingERP/FA/commit/5c2b576cebcb6bf59a23d4f49b7362003f8d1bf1">Fixed in repo</a>.<br />While this hook is not used in main code, it can be used by extensions.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2017-10-27T07:03:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29242#p29242</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Remove double return in hooks.inc]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29239#p29239" />
			<content type="html"><![CDATA[<p>Excuse me, but I see no problems here.</p><p>The last function either return the $result (if not null) or return the outcome from the static function default_get_dispatchable_quantity().<br />This function maybe called from a derived class of Hook.</p><p>I will, however, ask Janusz for a comment on this.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-10-26T22:55:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29239#p29239</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Remove double return in hooks.inc]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29235#p29235" />
			<content type="html"><![CDATA[<p>@joe: fix redundant returns.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-26T21:00:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29235#p29235</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Remove double return in hooks.inc]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29126#p29126" />
			<content type="html"><![CDATA[<p>The file <strong>includes/hooks.inc</strong> has it&#039;s last class method <strong>default_get_dispatchable_quantity()</strong> called only in the page&#039;s last function <strong>hook_get_dispatchable_quantity()</strong>.</p><p>1. Is this set of functions necessary here?<br />2. The said method has two consecutive <strong>return</strong> statements - remove or comment one of them if they should be there for some alternative workaround for a different set of PHP versions.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-21T10:07:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29126#p29126</id>
		</entry>
</feed>
