Login     Sign up
strange unserialize problem
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

if have 2 videos

one with attachement

[code]
a:4:{s:8:"cwall_id";s:7:"videos3";s:3:"uri";s:18:"videos/viewstory/3";s:4:"name";s:31:"James Blunt - You're beautiful";s:5:"thumb";s:40:"uploads/userfiles/201011/04_43_1xwwc.jpg";}
[/code]

the other with attachement

[code]
a:4:{s:8:"cwall_id";s:8:"videos17";s:3:"uri";s:19:"videos/viewstory/17";s:4:"name";s:7:"Imagine";s:5:"thumb";s:40:"uploads/userfiles/201012/05_18_9djde.jpg";}
[/code]
after using the unserialize function the first attachements results in an empty string, the second one results in an array.

Somebody has an idea why the one doesn't return an array ?

172 months ago