[TYPO3-core] RFC: is_array check extension manager (with private gossip)

Wolfgang Klinger wolfgang at stufenlos.net
Wed Aug 15 16:37:02 CEST 2007


*hiya!*

On Aug 15, 2007, at 7:25 AM, Wolfgang Klinger wrote:
> as this bugs me every now and then
> here's a patch that adds some is_array checks before
> foreach (should be common practice ;-))

I see you guys take it very serious... fine, fine ;-)

The following is slightly off-topic ;-)

Sorry that I didn't take part in the discussion, but I was
at a herbs festival to buy some plantlets for our own
herbs garden (end of summer/autumn is the best time of
the year to plant herbs - just in case you didn't know!)

Today we have a holiday here in Austria, so I have some time
for private gossip ;-)
So if you're interested flipping through some photographs
of our little farm and our very nice dog go to:
http://www.this-border-rocks.com/bilder/v/Hof/
http://www.this-border-rocks.com/bilder/v/art/

We have 12 sheeps now and a Border Collie to handle them properly.
We had four nativities (6 lambs) here lately and the lambs grow so
fast every day... really nice

You can see them in action shortly after they were born
(really an amateur video *hehe*) here:
http://youtube.com/watch?v=12ru-aOJABs


----------
Committed the following to trunk now
(I thought it's a good idea to add (trivial) in front,
so anybody who's reading the Changelog file can skip over such
entries faster):

---
Index: ChangeLog
===================================================================
0a1,4
 > 2007-08-15  Wolfgang Klinger  <wk at plan2.net>
 >
 >       * (trivial) Added is_array checks in extension manager code
 >
Index: typo3/mod/tools/em/class.em_index.php
===================================================================
4107a4108
 >               if (isset($conf['constraints']['depends']) &&  
is_array($conf['constraints']['depends'])) {
4170a4172
 >               }
4177a4180,4181
 >
 >               if (isset($conf['constraints']['conflicts']) &&  
is_array($conf['constraints']['conflicts'])) {
4190a4195
 >               }
4196c4201
<               if(is_array($conf['constraints']['suggests'])) {
---
 >               if(isset($conf['constraints']['suggests']) &&  
is_array($conf['constraints']['suggests'])) {
---


bye
Wolfgang

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070815/8ed30b9f/attachment.pgp 


More information about the TYPO3-team-core mailing list