Skip to content

Instantly share code, notes, and snippets.

@tcarlsen
Created February 18, 2010 11:48
Show Gist options
  • Save tcarlsen/307592 to your computer and use it in GitHub Desktop.
Save tcarlsen/307592 to your computer and use it in GitHub Desktop.
Notice (8): Undefined offset: 0 [CORE/cake/libs/set.php, line 1132]
Code | Context
foreach ($keys as $k) {
$sorted[] = $data[$k];
$data = array(
"Statuses" => array(
"type" => array(),
"Status" => array()
)
)
$path = "Statuses.Status.{n}.id"
$dir = 3
$result = array(
array(
"id" => 0,
"value" => "9278867691"
),
array(
"id" => 1,
"value" => "9278428278"
),
array(
"id" => 2,
"value" => "9275007573"
),
array(
"id" => 3,
"value" => "9154687148"
),
array(
"id" => 4,
"value" => "9278698010"
),
array(
"id" => 5,
"value" => "9272847600"
),
array(
"id" => 6,
"value" => "9254498314"
),
array(
"id" => 7,
"value" => "9253727587"
),
array(
"id" => 8,
"value" => "9231487704"
)
)
$values = array(
"9278867691",
"9278698010",
"9278428278",
"9275007573",
"9272847600",
"9254498314",
"9253727587",
"9231487704",
"9154687148"
)
$keys = array(
0,
4,
1,
2,
5,
6,
7,
8,
3
)
$sorted = array()
$k = 0
Set::sort() - CORE/cake/libs/set.php, line 1132
PagesController::display() - APP/controllers/pages_controller.php, line 14
Object::dispatchMethod() - CORE/cake/libs/object.php, line 125
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 240
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 206
[main] - APP/webroot/index.php, line 83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment